ampinzonv / BB2

BioBash UN official repository
Other
3 stars 1 forks source link

Output option for bb_get_fasta_info #8

Open ampinzonv opened 1 year ago

ampinzonv commented 1 year ago

CONTEXT In general all BB functions/scripts have the -o/--output option that allows to re-direct the output to a file.

PROBLEM Nevertheless, bb_get_fasta_info does not support that option and output is displayed in the STDOUT.

SOLUTION This can be handled by evaluating for this option in the script, if "-o" OR "--output" are present send to a file. Nevertheless this problem comes from the function itself that bb_get_seqeunce_info uses: BBSeq::get_fasta_components and then it should be fixed there not in this script (although also possible).