Git Product home page Git Product logo

cleanupdtseq's People

Contributors

dtenenba avatar nturaga avatar jwokaty avatar jianhong avatar hpages avatar vobencha avatar lihuajuliezhu avatar link-ny avatar sonali-bioc avatar

Watchers

James Cloos avatar  avatar

cleanupdtseq's Issues

How to speed up?

Reccently, I use cleanUpdTSeq to filter the internal primed events. it run well on test data, but for real data(PAS-seq, polyA-seq, 3'-seq, etc), it is very slow and speed nearly a day for a sample. are there any method to improve this? the following are my running code
`library('cleanUpdTSeq')

Args <- commandArgs()
input_file <- Args[6]
output_file <- Args[7]
#cat(Args)

testSet <- read.table(input_file, sep = "\t", header = T)
peaks <- BED2GRangesSeq(testSet, upstream.seq.ind=7,
downstream.seq.ind=8, withSeq=TRUE)
testSet.NaiveBayes <- buildFeatureVector(peaks,
upstream=40, downstream=30,
wordSize=6, alphabet=c("ACGT"),
sampleType="unknown",
replaceNAdistance=30,
method="NaiveBayes",
ZeroBasedIndex=1, fetchSeq=FALSE)

data(classifier)
test_results <- predictTestSet(testSet.NaiveBayes=testSet.NaiveBayes,
classifier=classifier,
outputFile=NULL,
assignmentCutoff=0.5)

test_results <- test_results[test_results[2] < 0.5, 1]
write.table(test_results, output_file, quote = F, row.names = F, col.names = F)`

Thank you very much and looking forward to your reply

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.