Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ $ pridepy download-all-public-raw-files -a PXD012353 -o /Users/yourname/Download
Additional options:

- `--skip-if-downloaded-already` / `--no-skip-if-downloaded-already` flag is used to control whether to skip files that already exist in the output directory. By default, files are skipped if they already exist. Use `--no-skip-if-downloaded-already` to force re-download.
- `--aspera_maximum_bandwidth` flag is used to specify the maximum bandwidth for the Aspera download. The default value is 100M.
- `--checksum_check` flag is used to check the checksum of the downloaded files. The default value is False.
- `--aspera-maximum-bandwidth` flag is used to specify the maximum bandwidth for the Aspera download. The default value is 100M.
- `--checksum-check` flag is used to check the checksum of the downloaded files. The default value is False.

## Downloading raw files from ProteomeXchange (PX)

Expand Down
38 changes: 19 additions & 19 deletions pridepy/pridepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ def main():
)
@click.option(
"-o",
"--output_folder",
"--output-folder",
required=True,
help="output folder to download or copy raw files",
)
@click.option(
"--skip_if_downloaded_already/--no-skip_if_downloaded_already",
"--skip-if-downloaded-already/--no-skip-if-downloaded-already",
is_flag=True,
default=True,
help="Skip the download if the file has already been downloaded. Default is to skip.",
)
@click.option(
"--aspera_maximum_bandwidth",
"--aspera-maximum-bandwidth",
required=False,
help="Aspera maximum bandwidth (e.g 50M, 100M, 200M), depending on the user's network bandwidth, default is 100M",
default="100M",
)
@click.option(
"--checksum_check",
"--checksum-check",
required=False,
help="Download checksum file for project",
is_flag=True,
Expand Down Expand Up @@ -97,7 +97,7 @@ def download_all_public_raw_files(
)
@click.option(
"-o",
"--output_folder",
"--output-folder",
required=True,
help="output folder to download or copy raw files",
)
Expand All @@ -108,13 +108,13 @@ def download_all_public_raw_files(
help="Skip the download if the file has already been downloaded. Default is to skip.",
)
@click.option(
"--aspera_maximum_bandwidth",
"--aspera-maximum-bandwidth",
required=False,
help="Aspera maximum bandwidth (e.g 50M, 100M, 200M), depending on the user's network bandwidth, default is 100M",
default="100M",
)
@click.option(
"--checksum_check",
"--checksum-check",
required=False,
help="Download checksum file for project",
is_flag=True,
Expand Down Expand Up @@ -178,29 +178,29 @@ def download_all_public_category_files(
default="ftp",
help="Protocol to be used to download files either by ftp or aspera or from globus. Default is ftp",
)
@click.option("-f", "--file_name", required=True, help="fileName to be downloaded")
@click.option("-f", "--file-name", required=True, help="fileName to be downloaded")
@click.option(
"-o",
"--output_folder",
"--output-folder",
required=True,
help="output folder to download or copy files",
)
@click.option(
"--skip_if_downloaded_already/--no-skip_if_downloaded_already",
"--skip-if-downloaded-already/--no-skip-if-downloaded-already",
is_flag=True,
default=True,
help="Skip the download if the file has already been downloaded. Default is to skip.",
)
@click.option("--username", required=False, help="PRIDE login username for private files")
@click.option("--password", required=False, help="PRIDE login password for private files")
@click.option(
"--aspera_maximum_bandwidth",
"--aspera-maximum-bandwidth",
required=False,
help="Aspera maximum bandwidth (e.g 50M, 100M, 200M), depending on the user's network bandwidth, default is 100M",
default="100M",
)
@click.option(
"--checksum_check",
"--checksum-check",
required=False,
help="Download checksum file for project",
is_flag=True,
Expand Down Expand Up @@ -264,12 +264,12 @@ def download_file_by_name(
)
@click.option(
"-o",
"--output_folder",
"--output-folder",
required=True,
help="output folder to download files",
)
@click.option(
"--skip_if_downloaded_already/--no-skip_if_downloaded_already",
"--skip-if-downloaded-already/--no-skip-if-downloaded-already",
is_flag=True,
default=True,
help="Skip the download if the file has already been downloaded. Default is to skip.",
Expand Down Expand Up @@ -304,7 +304,7 @@ def list_private_files(accession, user, password):
@main.command()
@click.option(
"-o",
"--output_file",
"--output-file",
required=True,
help="output file to save all the projects metadata",
)
Expand All @@ -320,7 +320,7 @@ def stream_projects_metadata(output_file):
@main.command()
@click.option(
"-o",
"--output_file",
"--output-file",
required=True,
help="output file to save all the files metadata",
)
Expand Down Expand Up @@ -356,7 +356,7 @@ def stream_files_metadata(accession, output_file):
)
@click.option(
"-ps",
"--page_size",
"--page-size",
required=False,
default=100,
type=click.IntRange(min=1, max=1000),
Expand All @@ -372,14 +372,14 @@ def stream_files_metadata(accession, output_file):
)
@click.option(
"-sd",
"--sort_direction",
"--sort-direction",
required=False,
default="DESC",
help="Sorting direction: ASC or DESC",
)
@click.option(
"-sf",
"--sort_fields",
"--sort-fields",
required=False,
default=["submission_date"],
multiple=True,
Expand Down
Loading