View source: R/MODULE_1_CELP_BIAS.R
bamtolist_rW | R Documentation |
Function to convert bam files and an annotation file to a reads_list object.
bamtolist_rW(bamfolder, annotation, transcript_align = TRUE, name_samples = NULL, indel_threshold = 5, refseq_sep = NULL, granges = FALSE)
bamfolder |
Path to the folder containing ribo-seq bam files (one bam file per sample is expected). |
annotation |
Annotation data table produced by |
transcript_align |
A logical argument indicating whether the reads were mapped to transcripts (TRUE) or geneome + gtf (FALSE). Default: TRUE. |
indel_threshold |
Maximum number of indels allowed per read. Default: 5. |
... |
... |
This function takes a folder of ribo-seq bam files (one per sample) and an annotation table as input, and produces a reads_list object.
The output is a reads_list object each element of which is a data frame representing one sample. Each row in the data frame contains mapping information (transcript name and read start and end coordinates) for one read.
reads_list_LMCN <- bamtolist_rW("<folder.path>/RPF_sorted_indexed", annotation_human_cDNA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.