Skip to content

Commit

Permalink
Reduce memory usage of filter-fasta through usecols
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Dec 9, 2022
1 parent c7dfca1 commit 5b2e288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/filter-fasta
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ but missing the input TSV file. This is useful in order to find which sequences
def main():
args = parse_args()

tsv = pd.read_csv(args.input_tsv, sep="\t", low_memory=False)
tsv = pd.read_csv(args.input_tsv, sep="\t", usecols=["seqName"], dtype=str)
tsv_ids = set(tsv['seqName'])

with open(args.input_fasta) as f_input:
Expand Down

0 comments on commit 5b2e288

Please sign in to comment.