File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def main(args):
94
94
ref_index_info = os .path .join (root_dir ,'reference_fasta_header_info.txt' )
95
95
96
96
subdirs = list (os .walk (root_dir ))[0 ][1 ]
97
+ subdirs = [subdir for subdir in subdirs if not subdir .startswith ('.' )]
97
98
for sample in subdirs :
98
99
print ('\n Processing sample %s' % sample )
99
100
# get the paths for the sample
@@ -104,7 +105,7 @@ def main(args):
104
105
# read the data
105
106
ref_index_df = pd .read_csv (ref_index_info ,sep = '\t ' ,header = None )
106
107
keys = ref_index_df [0 ].values
107
- values = ref_index_df [1 ].values
108
+ values = [ val . split ()[ 0 ] for val in ref_index_df [1 ].values ]
108
109
id_ref_dict = dict (list (zip (keys ,values )))
109
110
ref_seqs = list (SeqIO .parse (ref_file , "fasta" ))
110
111
contig_seqs = list (SeqIO .parse (contig_file , "fasta" ))
You can’t perform that action at this time.
0 commit comments