Skip to content

Commit

Permalink
RT728517: fix order based on portal api query
Browse files Browse the repository at this point in the history
  • Loading branch information
lilim-ebi committed Feb 20, 2024
1 parent 83dc90f commit eea9f8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion python3/enaDataGet.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_parser():
parser.add_argument('-as', '--aspera-settings', default=None,
help="""Use the provided settings file, will otherwise check
for environment variable or default settings file location.""")
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.7.0')
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.7.1')
return parser


Expand Down
2 changes: 1 addition & 1 deletion python3/enaGroupGet.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def set_parser():
for environment variable or default settings file location.""")
parser.add_argument('-t', '--subtree', action='store_true',
help='Include subordinate taxa (taxon subtree) when querying with NCBI tax ID (default is false)')
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.7.0')
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.7.1')
return parser


Expand Down
14 changes: 7 additions & 7 deletions python3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,15 +590,15 @@ def split_filelist(filelist_string):

def parse_file_search_result_line(line, accession, output_format):
cols = line.split('\t')
data_acc = cols[0].strip()
sub_filelist = split_filelist(cols[1])
sub_md5list = split_filelist(cols[2])
data_acc = cols[-1].strip()
sub_filelist = split_filelist(cols[0])
sub_md5list = split_filelist(cols[1])
if is_analysis(accession):
return data_acc, sub_filelist, sub_md5list
sra_filelist = split_filelist(cols[3])
sra_md5list = split_filelist(cols[4])
fastq_filelist = split_filelist(cols[5])
fastq_md5list = split_filelist(cols[6])
sra_filelist = split_filelist(cols[2])
sra_md5list = split_filelist(cols[3])
fastq_filelist = split_filelist(cols[4])
fastq_md5list = split_filelist(cols[5])
if output_format is None:
if len(sub_filelist) > 0:
output_format = SUBMITTED_FORMAT
Expand Down

0 comments on commit eea9f8e

Please sign in to comment.