Giter Club home page Giter Club logo

Comments (4)

Congm12 avatar Congm12 commented on August 24, 2024

Hi,

The keyword "--genesymbol" should have a following argument to specify in the GTF file which attribute corresponds to the gene symbol. For example, if the attribute name in the GTF file is "gene_name", your command should be

python AnnotateSQUIDOutput.py --genesymbol gene_name\ 
/public/workspace/lily/INDEX-hg19/anno/ucsc_hg19_gene.gtf \ 
/public/workspace/lily/squidout_sv.txt \ 
/public/workspace/lily/zhao_res/squid/CGGA1003.squid.finalout

You should look at the 9th column of your GTF file to find the attributes and feed in the correct attribute name for the gene symbol.

from squid.

liangyuli12138 avatar liangyuli12138 commented on August 24, 2024

yep!,it's work
However,there is a new erro:

Traceback (most recent call last):
File "/public/workspace/lily/software/squid-v1.5_linux_x86_64/AnnotateSQUIDOutput.py", line 333, in
Transcripts = ReadGTF(GTFfile, key_gene_id, key_gene_symbol)
File "/public/workspace/lily/software/squid-v1.5_linux_x86_64/AnnotateSQUIDOutput.py", line 98, in ReadGTF
tmpgenename=GetFeature(line, key_gene_symbol)
File "/public/workspace/lily/software/squid-v1.5_linux_x86_64/AnnotateSQUIDOutput.py", line 57, in GetFeature
s=line.index(key)
ValueError: substring not found

and i use python-3.6.6
Do i have to change the version ?

from squid.

Congm12 avatar Congm12 commented on August 24, 2024

The error suggests that the attribute name does not appear in some of the lines in the GTF file. Please make sure that the attribute name is exactly the same as the one in GTF. Or if you paste a few lines from the GTF file, I can further track down the problem or check whether the attributes are very different from what this script assumes.

from squid.

liangyuli12138 avatar liangyuli12138 commented on August 24, 2024

OK, It's work ,Tks a lot

from squid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.