Skip to content

Tag: bash

Converting an argparse bash script into a python script

Consider the bash script below. The script is an argparse script with various variables. How would I convert this bash script to a python script so that I could run it in a python IDE with the various variables? Answer This bash input should produce a sys.argv that looks like that’s a rough guess; bash may be handling the

Bash for loop containing python script

New here! I’m trying to loop a python script in bash that gets stats from fastq files. I want it to loop through all the fastq files in a directory and save the outputs in a text file. Ideally don’t want to edit the python script This is the script that works when I’m not looping it: This is the