Skip to content

Commit a3bb42d

Browse files
committed
Give summary stats without merging
1 parent 6dd8f01 commit a3bb42d

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

01_scripts/account_reads.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Clear space
2+
# rm(list=ls())
3+
4+
## Install and load packages
5+
# NA
6+
7+
# Set working directory
8+
setwd("~/Documents/04_HAB/eDNA_metabarcoding_HAB_18S_ngsfilter")
9+
10+
# Read in data
11+
my.data <- read.csv2(file = "07_results/input_fastq_read_count.txt", header = F, sep = ",")
12+
13+
head(my.data)
14+
15+
# Summarize
16+
sum(my.data$V1)
17+
summary(my.data$V1)
18+
sd(my.data$V1)

01_scripts/account_reads.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# Count number of reads per sample in 02_raw_data
3+
for i in 02_raw_data/*R1_001.fastq ; do grep -cE '^\+$' $i ; done > 07_results/input_fastq_read_count.txt
4+

0 commit comments

Comments
 (0)