Skip to content

vSNP step 2 not producing outputΒ #14

@lucyjanekelly

Description

@lucyjanekelly

I am running vSNP step 2 and it is saying that the process completed and that it saved the VCF files in default files but I can't find any output. I'm not getting any errors either. Here is my script:

Set paths
VCF_DIR="/xdisk/lilianasalvador/lucykelly/kristina_pipeline/SNP/vsnp_step1_output" REFERENCE="${VCF_DIR}/NC_002945v4.fasta"

Check if the directory exists
if [ ! -d "𝑉𝐢𝐹𝐷𝐼𝑅"];π‘‘β„Žπ‘’π‘›π‘’π‘β„Žπ‘œ"πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ:π·π‘–π‘Ÿπ‘’π‘π‘‘π‘œπ‘Ÿπ‘¦
VCF_DIR does not exist." exit 1 fi

Check if the reference file exists
if [ ! -f "𝑅𝐸𝐹𝐸𝑅𝐸𝑁𝐢𝐸"];π‘‘β„Žπ‘’π‘›π‘’π‘β„Žπ‘œ"πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ:π‘…π‘’π‘“π‘’π‘Ÿπ‘’π‘›π‘π‘’π‘“π‘–π‘™π‘’
REFERENCE does not exist." exit 1 fi

Process each VCF file
for VCF in "𝑉𝐢𝐹𝐷𝐼𝑅"/βˆ—.𝑣𝑐𝑓;π‘‘π‘œπ‘–π‘“[βˆ’π‘“"
VCF" ]; then BASENAME=(π‘π‘Žπ‘ π‘’π‘›π‘Žπ‘šπ‘’"
VCF" .vcf) echo "Processing $BASENAME..."

echo "Running command: vSNP_step2.py -v \"$VCF\" -r \"$REFERENCE\""

vSNP_step2.py -v "$VCF" -r "$REFERENCE" 2> "$VCF_DIR/${BASENAME}_error.log"

if [ $? -eq 0 ]; then
    echo "Step 2 completed for $BASENAME"
else
    echo "Error processing $BASENAME"
fi

fi
done

echo "All VCF files processed. Check output in vSNP default directories."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions