Hi All ,
Can any one please clarify why samtools view is failing .
I am writing shell script like this
#!/bin/bash
#PBS -l nodes=2
pn=2
for files in *.sra
do
OUT=(${files%.sra}.bam)
ref=($"/raid/references-and-indexes/hg19/bwa/hg19.fa")
fq=$(fastq-dump $files)
# Main code
bwa aln -t 8 $ref $fq|bwa samse $ref - $fq -|samtools view -bSh - /raid/development/anusha/python_test/shelltest/fetalbrain_bam/$OUT
done
I tried different combination for view like -bS
-Shu
by using the option -o still is failing
the code is working pretty fine till point of samtools view
I am getting following error many times and creating empty bam files
bwa_seq_open] fail to open file 'Written' : No such file or directory
[fread] Unexpected end of file
[samopen] no @SQ lines in the header.
[main_samview] random alignment retrieval only works for indexed BAM files.
[bam_header_read] EOF marker is absent. The input is probably truncated.
I am not understanding why this is failing
Thanks in advance ,
Anusha.Ch
Can any one please clarify why samtools view is failing .
I am writing shell script like this
#!/bin/bash
#PBS -l nodes=2

for files in *.sra
do
OUT=(${files%.sra}.bam)
ref=($"/raid/references-and-indexes/hg19/bwa/hg19.fa")
fq=$(fastq-dump $files)
# Main code
bwa aln -t 8 $ref $fq|bwa samse $ref - $fq -|samtools view -bSh - /raid/development/anusha/python_test/shelltest/fetalbrain_bam/$OUT
done
I tried different combination for view like -bS
-Shu
by using the option -o still is failing
the code is working pretty fine till point of samtools view
I am getting following error many times and creating empty bam files
bwa_seq_open] fail to open file 'Written' : No such file or directory
[fread] Unexpected end of file
[samopen] no @SQ lines in the header.
[main_samview] random alignment retrieval only works for indexed BAM files.
[bam_header_read] EOF marker is absent. The input is probably truncated.
I am not understanding why this is failing
Thanks in advance ,
Anusha.Ch
Comment