\name{subjunc} \alias{subjunc} \title{Finding exon junctions} \description{This function uses RNA-seq reads to discover exon junction locations} \usage{ subjunc(index,samfile,output_file,paired_end=FALSE,nthreads=1,indels=5,min_distance=50,max_distance=600,PE_orientation="fr") } \arguments{ \item{index}{ character string giving the basename of index file. Index files should be located in the current directory.} \item{samfile}{ character string giving the name of SAM file generated from read alignment (eg. output from \code{align} function).} \item{output_file}{ character string giving the name of output file which includes the mapping results.} \item{paired_end}{ logical, indicating whether the data is paired ended or single ended. \code{FALSE} by default.} \item{nthreads}{ numeric value giving the number of threads used for mapping. 1 by default.} \item{indels}{ numeric value giving the number of insertions/deletions allowed during the mapping. 5 by default.} \item{min_distance}{ numeric value giving the minimal distance between the pair of reads. 50 by default.} \item{max_distance}{ numeric value giving the maximal distance between the pair of reads. 600 by default.} \item{PE_orientation}{ character string giving the orientation of the two reads in a pair. "fr" by default, which means the first read is on the forward strand and the second read is on the reverse strand.} } \details{ This function takes as input the SAM format file generated from read alignment (eg. output from align() function), and then discover splicing points in the genome using junction reads reported in the SAM file (CIGAR strings include letter 'N'). Donor and receptor sites are used when detecting splicing points. This function can detect junction locations in the reads which are as close as 4bp from the end of the reads. It supports INDEL detection during the junction detection as well. This function calls the underlying C program to perform the exon junction discovery. The C program can be run on its own as well, which is included in the subread software package (http://subread.sourceforge.net/) } \value{ This function outputs two files: one is a BED format file which inlcudes the discovered junction locations and numbers of supporting reads, and a SAM format file which includes the mapping result for each read. } \references{ } \author{Wei Shi and Yang Liao} %\note{} %\seealso{} \examples{ } % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. %\keyword{}