Comments (7)
Does this error get triggered by every file? i.e. what happens if you remove the loop and just try fns[[1]]
and nops[[1]]
.
What is the output of head(fns)
and head(nops)
?
from lrasmanuscript.
So with the loop the output would be
head(fns)
[1] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.0_0.fastq.gz"
[2] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.1_1.fastq.gz"
[3] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.10_10.fastq.gz"
[4] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.11_11.fastq.gz"
[5] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.12_12.fastq.gz"
[6] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.13_13.fastq.gz"
head(nops)
[1] "/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.0_0.fastq.gz"/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.1_1.fastq.gz"
[2] "
[3] "/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.10_10.fastq.gz"/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.11_11.fastq.gz"
[4] "
[5] "/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.12_12.fastq.gz"/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.13_13.fastq.gz"
[6] "
and instead of using the loop i now tried the following:
fn <- fns[[3]]; nop <- nops[[3]]
dada2:::removePrimers(fn, nop, primer.fwd=FWD, primer.rev=dada2:::rc(REV), orient=TRUE)
Error in sapply(match.fwd, end) + 1 :
non-numeric argument to binary operator
whereas:
head(nop)
[1] "~/OneDrive - Syddansk Universitet/HzsA/packed//noprimers/demux_ccs.10_10.fastq.gz"
head(fn)
[1] "/Users/schauberger/OneDrive - Syddansk Universitet/HzsA/packed//demux_ccs.10_10.fastq.gz"
from lrasmanuscript.
And yes unfortunately it gets triggered by every file
from lrasmanuscript.
Not sure. Can you share one file with me (one of the fns
) so that I can reproduce it on my end?
from lrasmanuscript.
Hi,
I hope i have used the correct email :)
and thank you so much helping with this 👍
from lrasmanuscript.
The immediate issue is that your FWD and REV primer sequenced you've provided are not in your sequencing data. Are you sure these primers were used? Were primers perhaps already removed by another software tool?
Edit: Added a check for this condition (no primer matches) to the function in benjjneb/dada2@9c22747
from lrasmanuscript.
from lrasmanuscript.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lrasmanuscript.