|
0
|
1 ---
|
|
|
2 title: 'HTML report title'
|
|
|
3 output:
|
|
|
4 html_document:
|
|
|
5 number_sections: true
|
|
|
6 toc: true
|
|
|
7 theme: cosmo
|
|
|
8 highlight: tango
|
|
|
9 ---
|
|
|
10
|
|
|
11 ```{r setup, include=FALSE, warning=FALSE, message=FALSE}
|
|
|
12 knitr::opts_chunk$set(
|
|
7
|
13 echo = opt$echo,
|
|
0
|
14 error = TRUE
|
|
|
15 )
|
|
|
16 ```
|
|
|
17
|
|
|
18
|
|
|
19 # Code for computational analysis
|
|
|
20
|
|
|
21 ```{r 'step 1'}
|
|
7
|
22 opt
|
|
0
|
23 ```
|
|
|
24
|
|
|
25 ```{r 'ste[ 2'}
|
|
10
|
26 res = featureCounts(
|
|
|
27 files = strsplit(opt$input_bam, ',')[[1]],
|
|
|
28 # annotation
|
|
|
29 annot.inbuilt=opt$annot_inbuilt,
|
|
|
30 annot.ext=opt$annot_ext,
|
|
|
31 isGTFAnnotationFile=opt$isGTFAnnotationFile,
|
|
|
32 GTF.featureType=opt$gtf_feature_type,
|
|
|
33 GTF.attrType=opt$gtf_attr_type,
|
|
|
34 chrAliases=opt$chr_aliases,
|
|
|
35
|
|
|
36 # level of summarization
|
|
|
37 useMetaFeatures=opt$use_meta_features,
|
|
|
38
|
|
|
39 # overlap between reads and features
|
|
|
40 allowMultiOverlap=opt$allow_multi_overlap,
|
|
|
41 minOverlap=opt$min_overlap,
|
|
|
42 largestOverlap=opt$largest_overlap,
|
|
|
43 readExtension5=opt$read_extension_5,
|
|
|
44 readExtension3=opt$read_extension_3,
|
|
|
45 read2pos=opt$read_2_pos,
|
|
|
46
|
|
|
47 # multi-mapping reads
|
|
|
48 countMultiMappingReads=opt$count_multi_mapping_reads,
|
|
|
49 fraction=opt$fraction,
|
|
0
|
50
|
|
10
|
51 # read filtering
|
|
|
52 minMQS=opt$min_mqs,
|
|
|
53 splitOnly=opt$split_only,
|
|
|
54 nonSplitOnly=opt$non_split_only,
|
|
|
55 primaryOnly=opt$primary_only,
|
|
|
56 ignoreDup=opt$ignore_dup,
|
|
|
57
|
|
|
58 # strandness
|
|
|
59 strandSpecific=opt$strand_specific,
|
|
|
60
|
|
|
61 # exon-exon junctions
|
|
|
62 juncCounts=opt$junc_counts,
|
|
|
63 genome=opt$genome,
|
|
|
64
|
|
|
65 # parameters specific to paired end reads
|
|
|
66 isPairedEnd=opt$is_paired_end,
|
|
|
67 requireBothEndsMapped=opt$require_both_ends_mapped,
|
|
|
68 checkFragLength=opt$check_frag_length,
|
|
|
69 minFragLength=opt$min_frag_length,
|
|
|
70 maxFragLength=opt$max_frag_length,
|
|
|
71 countChimericFragments=opt$count_chimeric_fragments,
|
|
|
72 autosort=opt$auto_sort,
|
|
|
73
|
|
|
74 # miscellaneous
|
|
|
75 nthreads=opt$n_threads,
|
|
|
76 maxMOp=opt$max_mop,
|
|
|
77 reportReads=opt$report_reads
|
|
|
78 )
|
|
|
79 str(res)
|
|
0
|
80 ```
|
|
|
81
|
|
|
82
|