getPairedReads: Get the filenames of paired reads

Description Usage Arguments Details Value Author(s) Examples

Description

Given the filenames of the first reads fastq files, get the filenames of the paired reads fastq if exist.

Usage

1
  getPairedReads(reads1)

Arguments

reads1

The filenames of the first reads.

Details

The current supported file suffixes are "R1_001.fastq.gz", "R1.fastq.gz", "R1.fastq", "F3.csfasta" and "F3.csfasta". The corresponding mapping paired reads have suffixes of "R2_001.fastq.gz", "R2.fastq.gz", "R2.fastq", "F5-BC.csfasta" and "F5-RNA.csfasta".

Value

If the paired reads exist, the filenames are returned. Otherwise, NULL is returned.

Author(s)

Ge Tan

Examples

1
2
3
4
5
  x <- c("nanocage_ACAGAT_carp_embryo_R1.fastq.gz",
         "nanocage_CACGAT_carp_hk_control_R1.fastq.gz",
         "nanocage_CACTGA_carp_hk_Tborreli1_R1.fastq.gz",
         "nanocage_CTGACG_carp_hk_Tborreli2_R1.fastq.gz")
  getPairedReads(x)

ge11232002/NGS documentation built on May 17, 2019, 12:13 a.m.