Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…QC_pipeline

merging report.
  • Loading branch information
alexandriai168 committed Aug 11, 2023
2 parents 88a0b80 + 2d76293 commit 525722f
Show file tree
Hide file tree
Showing 3 changed files with 2,748 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/dada2QAQC.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ for (i in 1:nrow(primer.data)){

### Plot Quality Scores and Save ----------------------------------
png(filename=file.path(output_location,"logs",paste0(run_name,"_",primer.data$locus_shorthand[i],"_forward.png")))
plotQualityProfile(fnFs[1:4])
plotQualityProfile(fnFs)
dev.off()
png(filename=file.path(output_location,"logs",paste0(run_name,"_",primer.data$locus_shorthand[i],"_reverse.png")))
plotQualityProfile(fnRs[1:4])
plotQualityProfile(fnRs)
dev.off()

### Find quality trimming length ----------------------------------
Expand Down Expand Up @@ -99,7 +99,7 @@ for (i in 1:nrow(primer.data)){
}
where_trim_all_Rs <- median(trimsR)

# for shorter sequences, check if the trim is too long
# Trim to max_trim value if the obtaided length is greater that max_trim
if(where_trim_all_Fs > primer.data$max_trim[i]){
where_trim_all_Fs <- primer.data$max_trim[i]
}
Expand Down
Loading

0 comments on commit 525722f

Please sign in to comment.