Git Product home page Git Product logo

Comments (14)

goldenflaw avatar goldenflaw commented on July 18, 2024

from leafcutter.

Bonder-MJ avatar Bonder-MJ commented on July 18, 2024

from leafcutter.

goldenflaw avatar goldenflaw commented on July 18, 2024

from leafcutter.

Bonder-MJ avatar Bonder-MJ commented on July 18, 2024

from leafcutter.

Bonder-MJ avatar Bonder-MJ commented on July 18, 2024

from leafcutter.

goldenflaw avatar goldenflaw commented on July 18, 2024

from leafcutter.

Bonder-MJ avatar Bonder-MJ commented on July 18, 2024

from leafcutter.

davidaknowles avatar davidaknowles commented on July 18, 2024

This is now fixed in the readme, sorry for the inconvenience and thanks for finding this issue!

from leafcutter.

summike avatar summike commented on July 18, 2024

Hi, I am sorry that I met the similar problem when I ran my own data. There are about 350 samples in my data, so I cannot provide the comprehensive information on the first two rows, but I try to provide as much as I can. Please kindly see the details below.
Here is my TT_perind.counts file,

chrom KDNY048-Aligned.out.bam ABO8T90-Aligned.out.bam ABT3R48-Aligned.out.bam ABE3T55-Aligned.out.bam ABP9U87-Aligned.out.bam 44ad-0cb35529f2-Aligned.out.bam ABD9C13-Aligned.out.bam ABF4J93-Aligned.out.bam 9d55-8ac6e18fcd-Aligned.out.bam ...
chr1:15225:185747:clu_2911_NA 3/3 0/1 53/54 2/2 0/0 0/0 0/0 8/9 0/0 ...
chr1:15225:185758:clu_2911_NA 0/3 1/1 1/54 0/2 0/0 0/0 0/0 1/9 0/0 ...
...

After I ran the command,
"python scripts/prepare_phenotype_table.py example_data/TT_perind.counts.gz -p 10".

I got the following error,
"
Starting...
Traceback (most recent call last):
File "scripts/prepare_phenotype_table.py", line 171, in
main(args[0], int(options.npcs) )
File "scripts/prepare_phenotype_table.py", line 60, in main
chrom = dic['chrom'].replace("chr",'')
KeyError: 'chrom'
"

I am clear that I input the _counts file and have already sorted by the first column (chrom). May I know what may cause this error?

Thank you for your patience and kind help!

from leafcutter.

goldenflaw avatar goldenflaw commented on July 18, 2024

from leafcutter.

summike avatar summike commented on July 18, 2024

Hello Yang,
Thank you very much for your reply. However, the error still occurs after taking your advice.

command of Line 60, chrom = dic['chrom'].replace("chr",''), is located in one for-loop. I am sorry that my python knowledge is limited. May I know does this command for extract the chromosome number without 'chr'?
2018-07-16 6 43 27

from leafcutter.

goldenflaw avatar goldenflaw commented on July 18, 2024

from leafcutter.

summike avatar summike commented on July 18, 2024

Hello Yang,
I have a check of the 'dic' file. There must be something gone wrong in the previous steps as the format is not as nice and clear as that of the example data you provided. I will re-run the whole process again to see if I can address this problem.
Thank you for your help!

Best wishes,
Mike

from leafcutter.

summike avatar summike commented on July 18, 2024

Hello Yang,
Problem solved!

The mistake was made when I did the data selection process. I mistakenly separated each datum by "\t" other than " " in the gzipped file.

Thank you very much for your help!
Best wishes,
Mike

from leafcutter.

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.