Rsamtools_view: Samtools views in R to filter multiple alignments

Usage Examples

Usage

1
2
Rsamtools_view(sam_name, sam_directory = ".", sam_end = ".sam",
  parallel_num = 8, flag_filter = 2816)

Examples

1
2
3
4
5
6
7
sam_filenames <- gsub(".sam","",grep(".sam$",list.files(),value = T) )
sapply(
 sam_filenames,
 function(x){
   Rsamtools_view(x,flag_filter = 2816) %>% Rnohup(.,paste0(x,"_samfilter") )
 }
)

ZhenWei10/RbashGEO documentation built on May 28, 2019, 8:22 a.m.