Coder Social home page Coder Social logo

MSMC error about msmc HOT 12 CLOSED

stschiff avatar stschiff commented on July 29, 2024
MSMC error

from msmc.

Comments (12)

stschiff avatar stschiff commented on July 29, 2024

Hi,

what's not to understand about these error messages? The first one suggests that you are using an index number in the -I flag that exceeds the number of haplotypes that are actually in your file. Note that indexing here is 0-based. The second error suggests that you have put multiple chromosome into one file, which is not allowed. You need to separate chromosomes into separate files and give all those files to MSMC on the command line.

Best,
Stephan

from msmc.

kentsing avatar kentsing commented on July 29, 2024

from msmc.

zillurbmb51 avatar zillurbmb51 commented on July 29, 2024

Hello there,
I am having almost same problem here. In my case I have separate file for each chromosome. Whenever, I tried to put r and I flag I am getting the following error
`core.exception.RangeError@model/data.d(188): Range violation

??:? _d_arrayboundsp [0x5b5ad2]`
Any help? My sample represents a single population. Should I use I 0,1,4,5 ? Whatever value I put for r and I, I am getting the same error. Without r and I the program runs without any error.
Best regards
Zillur

from msmc.

kentsing avatar kentsing commented on July 29, 2024

from msmc.

zillurbmb51 avatar zillurbmb51 commented on July 29, 2024

Thank you very much. I have only snps in my data, no indels. However, if I put "I 0,1" it runs without any error. How can I identify which value I need for my dataset?
Best regards
Zillur

from msmc.

stschiff avatar stschiff commented on July 29, 2024

from msmc.

zillurbmb51 avatar zillurbmb51 commented on July 29, 2024

Thank you very much. My command line was :

samtools mpileup -q 20 -Q 20 -C 50 -u -r Pf3D7_01_v3 -f pfal.fa SRR3305693_NoDup_addrplced.bam | bcftools call -c -V indels | /gondor/zillur/thesis/psmc/msmc-tools/bamCaller.py 331.781 chr1.mask.bed.gz | gzip -c > chr1.vcf.gz
/gondor/zillur/thesis/psmc/msmc-tools/generate_multihetsep.py --mask=chr1.mask.bed.gz chr1.vcf.gz > chr1.msmc.input.txt
/gondor/zillur/msmc2/build/release/msmc2 -t 16 -r 0.0115 -I 0,1,4,5 -o test1 chr1.msmc.input.txt

If I run without the "I" flag or "I 0,1" it works.

Just to clarify, the value of r should be mutation rate/recombination rate, right?
Best regards
Zillur
chr1.mask.bed.gz
chr1.msmc.input.txt
chr1.vcf.gz

from msmc.

rillaxy avatar rillaxy commented on July 29, 2024

Thank you very much. My command line was :

samtools mpileup -q 20 -Q 20 -C 50 -u -r Pf3D7_01_v3 -f pfal.fa SRR3305693_NoDup_addrplced.bam | bcftools call -c -V indels | /gondor/zillur/thesis/psmc/msmc-tools/bamCaller.py 331.781 chr1.mask.bed.gz | gzip -c > chr1.vcf.gz
/gondor/zillur/thesis/psmc/msmc-tools/generate_multihetsep.py --mask=chr1.mask.bed.gz chr1.vcf.gz > chr1.msmc.input.txt
/gondor/zillur/msmc2/build/release/msmc2 -t 16 -r 0.0115 -I 0,1,4,5 -o test1 chr1.msmc.input.txt

If I run without the "I" flag or "I 0,1" it works.

Just to clarify, the value of r should be mutation rate/recombination rate, right?
Best regards
Zillur
chr1.mask.bed.gz
chr1.msmc.input.txt
chr1.vcf.gz

Thank you very much. I have only snps in my data, no indels. However, if I put "I 0,1" it runs without any error. How can I identify which value I need for my dataset?
Best regards
Zillur

Hi ,Zillur ,

Thank you very much. I have only snps in my data, no indels. However, if I put "I 0,1" it runs without any error. How can I identify which value I need for my dataset?
Best regards
Zillur
Hi, Zillur ,I am getting the same error with you.How do you solve this problem?

Thank you very much. I have only snps in my data, no indels. However, if I put "I 0,1" it runs without any error. How can I identify which value I need for my dataset?
Best regards
Zillur

Hi, Zillur ,I am getting the same error with you.How do you solve this problem?
Looking forward to hearing from you .Thank you.
Rilla

from msmc.

zillurbmb51 avatar zillurbmb51 commented on July 29, 2024

Hello Rilla, could share some part of your chr*.msmc.input.txt. Did you try with/without 'I' flag? Running without '-I' was OK for me. Best, Zillur

from msmc.

rillaxy avatar rillaxy commented on July 29, 2024

Hello Rilla, could share some part of your chr*.msmc.input.txt. Did you try with/without 'I' flag? Running without '-I' was OK for me. Best, Zillur

Hello Zillur, I send some part of my chr*.msmc.input.txt to you . This is no phased diploid genomes. The probelm is itcan run with 'I' flag if I put "I 0,1" or without the 'I' flag.But it can't run if I use I 0,1,4,5. Why ?
Thanks for your reply. Below is my command and wrong information. Looking forward hearing from you.
Rilla

msmc2 -r 0.00157 -I 0,1 -o msmc.test msmc-input-chr*(success)
msmc2 -r 0.00157 -o msmc.test msmc-input-chr*(success)
msmc2 -r 0.00157 -I 0,1,4,5 -o msmc.test msmc-input-chr*(wrong)

core.exception.RangeError@model/data.d(188): Range violation

??:? _d_arrayboundsp [0x5cfe25]
??:? bool model.data.has_missing_data(const(char[][]), ulong[2]) [0x560f44]
??:? model.data.SegSite_t[][] model.data.readSegSites(immutable(char)[], ulong[2][], bool) [0x560804]
??:? model.data.SegSite_t[][] msmc2.readDataFromFiles(immutable(char)[][], ulong[2][], bool) [0x585295]
??:? void msmc2.parseCommandLine(immutable(char)[][]) [0x5837e2]
??:? _Dmain [0x5830f7]

msmc-input-chr01.txt
msmc-input-chr02.txt
msmc-input-chr03.txt

from msmc.

zillurbmb51 avatar zillurbmb51 commented on July 29, 2024

Hello Rilla, I guess you have only two character in the snp column. AT/CG etc. Maybe that's why it wotk on 0,1 but not more that 1. Best, Zillur

from msmc.

rillaxy avatar rillaxy commented on July 29, 2024

Hello Rilla, I guess you have only two character in the snp column. AT/CG etc. Maybe that's why it wotk on 0,1 but not more that 1. Best, Zillur

Hello Zillur, I get it. Thank you very much. Best, Rilla

from msmc.

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.