Closed jiahsinhuang closed 8 years ago
Hi, Thanks for trying out SplAdder. I made annotation parsing a bit more robust and pushed a fix to the development branch. Let me know whether this works for you. Cheers, Andre
Hi, Andre. Thanks for your response. The annotation parsing problem is solved although I got another error message as below.
$ python /Users/jhhuang/IIS_jhh/GitHub/spladder/python/spladder.py -a Drosophila_melanogaster/ensembl/Drosophila_melanogaster.BDGP6.84.chr.gff3 -b HISAT2_Stringtie_Ballgown/SRR1055723.hisat2.sorted.bam -o spladder_AS/ -T n
Generating splice graph ... ...done.
Loading introns from file ...
Traceback (most recent call last):
File "/Users/jhhuang/IIS_jhh/GitHub/spladder/python/spladder.py", line 323, in
Are your BAM files indexed?
Cool! I generated the index file with samtools and Spladder works! Thank you very much.
The convention is to call samtools index
with the bam filename as the only argument:
samtools index SRR1055723.hisat2.sorted.bam
This will create a file SRR1055723.hisat2.sorted.bam.bai
. SplAdder will automatically use this index when called with SRR1055723.hisat2.sorted.bam
.
Hi, Thanks for trying out SplAdder. I made annotation parsing a bit more robust and pushed a fix to the development branch. Let me know whether this works for you. Cheers, Andre
Hello,
I am trying to use SplAdder and I have the same error. I tried replacing the files gene.py, spladder.py, init.py and settings.py as suggested above but it didn't solve it.
Traceback (most recent call last):
File "./bin/spladder/python/spladder.py", line 323, in
I am using the annotation file GCF_000001735.4_TAIR10.1_genomic.gff from ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/001/735/GCF_000001735.4_TAIR10.1
Any help will be appreciated
Dear CarinaCornejo,
It looks like SplAdder has difficulties with the category primary_transcript
in your file. I will have a look, but will only be able to fix it early next week. A possible workaround for you might be to just remove all the lines containing primary_transcript
, e.g. like so:
grep -v primary_transcript GCF_000001735.4_TAIR10.1_genomic.gff > GCF_000001735.4_TAIR10.1_genomic.filtered.gff
Cheers, Andre
Dear Andre,
thanks for the suggestion but I am getting the same error with the filtered file.
Hello, I have tried SplAdder and got error messages:
gff3 file from ensembl (Drosophila_melanogaster.BDGP6.84.chr.gff3)
$ python spladder.py -a ../../Drosophila_melanogaster/ensembl/Drosophila_melanogaster.BDGP6.84.chr.gff3 -b ../../HISAT2_Stringtie_Ballgown/SRR1055723.hisat2.sorted.bam -o ../../spladder -T n Traceback (most recent call last): File "spladder.py", line 322, in
spladder()
File "spladder.py", line 144, in spladder
(genes, CFG) = init.init_genes_gff3(CFG['anno_fname'], CFG, CFG['anno_fname'] + '.pickle')
File "/Users/jhhuang/IIS_jhh/TEAS_Dmel/spladder/python/modules/init.py", line 256, in init_genes_gff3
gene_id = trans2gene[trans_id]
KeyError: 'transcript:FBtr0309810'
gff3 file from ensembl (Drosophila_melanogaster.BDGP6.84.gff3)
$ python spladder.py -a ../../Drosophila_melanogaster/ensembl/Drosophila_melanogaster.BDGP6.84.gff3 -b ../../HISAT2_Stringtie_Ballgown/SRR1055723.hisat2.sorted.bam -o ../../spladder -T n Traceback (most recent call last): File "spladder.py", line 322, in
spladder()
File "spladder.py", line 144, in spladder
(genes, CFG) = init.init_genes_gff3(CFG['anno_fname'], CFG, CFG['anno_fname'] + '.pickle')
File "/Users/jhhuang/IIS_jhh/TEAS_Dmel/spladder/python/modules/init.py", line 258, in init_genes_gff3
t_idx = genes[gene_id].transcripts.index(trans_id)
KeyError: 'gene:FBgn0085737'
Please advise me to solve the errors. Thank you.