Entering edit mode
4.0 years ago
evafinegan
•
0
Hello,
I am using this loop for a software"
RUN=$(printf "%02d" ${SLURM_ARRAY})
INPUT_DIR=/path
OUTPUT_DIR=/path
echo "RUN"
INPUT_FILE=$(ls $INPUT_DIR/*.bed | sed -n ${RUN}p)
SAMPLE=$(basename "$INPUT_FILE" .bed)
echo "RUN #${RUN} with sample ${SAMPLE}"
freebayes -f genome.fasta \
-L genome_1.txt \
--targets ${INPUT_FILE} > ${OUTPUT_DIR}/${SAMPLE}_.vcf
But I am getting error:
sed: -e expression #1, char 3: invalid usage of line address 0
Thank you for the help.
what are you trying to do with
sed
? or what is the expected value ofINPUT_FILE
?INPUT_FILE
is expected to give each of thebed
file name along with path to run with an array.I am not sure if freebayes
--targets
accepts more than one file, but in case you will need to put together in a single string, like: