Code Monkey home page Code Monkey logo

qc_analysis's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

qc_analysis's Issues

Running with the exmaple errors

@bittremieux

Im trying to run the example with the following command:

 python3.4 qc_analysis.py --k_neighbors 2 ../data/qc/PNNL_velos_QuaMeter.tsv ../exampple.html

Im receiving the following error.

Traceback (most recent call last):
  File "qc_analysis.py", line 143, in <module>
    run(parse_args())
  File "qc_analysis.py", line 132, in run
    data = load_metrics(args.file_in, args.min_var, args.min_corr, args.scaling_mode)
  File "qc_analysis.py", line 22, in load_metrics
    data, variance, cor = preprocess.preprocess(data_raw, min_variance=min_var, min_corr=min_corr, scaling_mode=scaling)
  File "/Users/yperez/IdeaProjects/github-repo/BDP/py-pgatk/qc/preprocess.py", line 20, in preprocess
    data, variance = remove_low_variance_features(data, min_variance)
  File "/Users/yperez/IdeaProjects/github-repo/BDP/py-pgatk/qc/preprocess.py", line 31, in remove_low_variance_features
    return data[np.where(variance_threshold.variances_ > min_variance)[0]], variance_threshold.variances_
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pandas/core/frame.py", line 2133, in __getitem__
    return self._getitem_array(key)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pandas/core/frame.py", line 2177, in _getitem_array
    indexer = self.loc._convert_to_indexer(key, axis=1)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pandas/core/indexing.py", line 1269, in _convert_to_indexer
    .format(mask=objarr[mask]))
KeyError: '[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23\n 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 43] not in index'

Any advice?

BTW, can you give me a default parameter for this --k_neighbors

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.