-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
python/quantmsio/quantms_io/commands/generate_report_command.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import click | ||
|
||
from quantms_io.core.tools import generate_report_of_psms_or_features | ||
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"]) | ||
|
||
|
||
@click.group(context_settings=CONTEXT_SETTINGS) | ||
def cli(): | ||
""" | ||
This is the main tool that gives access to all commands. | ||
""" | ||
|
||
@click.command( | ||
"generate_report_about_files", | ||
short_help="generateb report of psm or feature files " "format", | ||
) | ||
@click.option( | ||
"--check_dir", help="Folder to generate the df expression file.", required=True | ||
) | ||
@click.option('--label', type=click.Choice(['feature', 'psm'], case_sensitive=False),help='parquet type') | ||
@click.pass_context | ||
def generate_report_about_files(ctx, check_dir: str, label: str): | ||
''' | ||
ckeck_dir: psm or feature file file directory | ||
label: psm or feature | ||
''' | ||
generate_report_of_psms_or_features(check_dir=check_dir,label=label) | ||
|
||
cli.add_command(generate_report_about_files) | ||
|
||
if __name__ == '__main__': | ||
cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters