Code Monkey home page Code Monkey logo

fitdnm's People

Contributors

jeremymcrae avatar

Watchers

 avatar

fitdnm's Issues

TypeError: takes 2 positional arguments but 3 were given

Novice (non) Python user with limited departmental support. Apologies in advance.

I'm trying to apply this fitDNM (Python version) to a preliminary dataset of WGS-derived DNMs (100,000 genomes project [UK])

fitDNM cloned and locally installed on CentOS Linux 7; Python 3.7.4

Input:

  • standard input with locally imported mutation rates and regional constraint (via gnomAD/ExAC) metrics
  • CADD scores are locally hosted, bgzipped and indexed
  • provisionally run as an interactive job on a LSF cluster

python scripts/run_fitDNM.py
--males 89
--females 89
--de-novos input/de_novos.tsv
--genome-build GRCh38
--severity PATH_TO_LOCAL_CADD_SNV
--rates PATH_TO_LOCAL_MUT_RATES
--constraint PATH_TO_LOCAL_REGIONAL_CONSTRAINT
--output output/output.txt

Error output:
image

As shown, recurring issue with "TypeError : [] takes 2 positional arguments but 3 were given"
This error relates to Line 47 but I'm anticipating the same error from lines 53 and 54 on the same logic.

I understand that this can be overcome by addition of self in the definition but am unsure how to overcome this with the list of arguments that are being defined in the function. Apologies again for the naivety. Please let me know if this is more likely to be a local issue which I can try and address.

Any advice would be appreciated regardless. Thanks

a way to input multiple scores other than CADD?

(This is more of a question than an issue)

Is there a way to incorporate multiple functional scores (let's say CADD and PolyPhen) other than a single score?
On the separate note, what format would these scores should be if multi columned?

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.