# Open Reading Frames in Genomics

## Documentation for package ‘ORFik’ version 1.0.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A B C D E F G H I K L M N O P R S T U V W

ORFik-package | ORFik for analysis of open reading frames.

## -- A --

addFirstCdsOnLeaderEnds | Extends leaders downstream
addNewTSSOnLeaders | add cage max peaks as new transcript start sites for each 5' leader (*) strands are not supported, since direction must be known.
assignAnnotations | Overlaps GRanges object with provided annotations.
assignFirstExons | After all transcript start sites have been updated from cage, put GRangesList back together
assignFirstExonsStartSite | Reassign the start positions of the first exons per group in grl
assignLastExonsStopSite | Reassign the stop positions of the last exons per group
asTX | Map genomic to transcript coordinates by reference

## -- B --

bedToGR | Converts different type of files to Granges

## -- C --

changePointAnalysis | Get the offset for specific RiboSeq read width
checkRFP | Helper Function to check valid RFP input
checkRNA | Helper Function to check valid RNA input
codonSumsPerGroup | Get hits per codon
computeFeatures | Get all possible features in ORFik
computeFeaturesCage | Get all possible features in ORFik
coverageByWindow | Compute coverage for every GRangesList subset.
coveragePerTiling | Get coverage per group

## -- D --

defineIsoform | Overlaps GRanges object with provided annotations.
defineTrailer | Defines trailers for ORF.
detectRibosomeShifts | Detect ribosome shifts
disengagementScore | Disengagement score (DS)
distToCds | Get distances between ORF ends and starts of their transcripts cds'.
downstreamN | Restrict GRangesList
downstreamOfPerGroup | Get rest of objects downstream

## -- E --

entropy | Calucalte entropy value of overlapping input reads.
extendLeaders | Extend the leaders transcription start sites.
extendsTSSexons | Extend first exon of each transcript with length specified

## -- F --

filterCage | Filter peak of cage-data by value
findCageUTRFivelen | Get length of leaders ordered after oldTxNames
findFa | Convenience wrapper for Rsamtools FaFile
findMapORFs | Find ORFs and immediately map them to their genomic positions.
findMaxPeaks | Find max peak for each transcript, returns as data.table, without names, but with index
findNewTSS | Finds max peaks per trancsript from reads in the cagefile
findORFs | Find Open Reading Frames.
findORFsFasta | Finds Open Reading Frames in fasta files.
firstEndPerGroup | Get first end per granges group
firstExonPerGroup | Get first exon per GRangesList group
firstStartPerGroup | Get first start per granges group
fixSeqnames | Seqnames cleanup
floss | Fragment Length Organization Similarity Score
fpkm | Create normalizations of overlapping read counts.
fpkm_calc | Create normalizations of counts
fractionLength | Fraction Length
fread.bed | Load bed file as GRanges.

## -- G --

getStartStopWindows | Get Start and Stop codon within specified windows over CDS.
groupGRangesBy | Group GRanges
gSort | Sort a GRangesList, helper.

## -- H --

hasHits | Hits from reads

## -- I --

insideOutsideORF | Inside/Outside score (IO)
is.grl | Helper function to check for GRangesList
is.gr_or_grl | Helper function to check for GRangesList or GRanges class
isInFrame | Find frame for each orf relative to cds
isOverlapping | Find frame for each orf relative to cds
isPeriodic | Find if there is periodicity in the vector

## -- K --

kozakSequenceScore | Make a score for each ORFs start region by proximity to Kozak

## -- L --

lastExonEndPerGroup | Get last end per granges group
lastExonPerGroup | Get last exon per GRangesList group
lastExonStartPerGroup | Get last start per granges group

## -- M --

makeExonRanks | Make a meta column with exon ranks
makeORFNames | Make ORF names per orf
mapToGRanges | Map orfs to genomic coordinates
matchNaming | Match naming of GRangesList
matchSeqlevels | Match seqnames
metaWindow | Calculate metaplot coverage of reads around input GRangesList object.

## -- N --

numExonsPerGroup | Get list of the number of exons per group

## -- O --

orfID | Get id's for orf
ORFik | ORFik for analysis of open reading frames.
orfScore | Get ORFscore for a GRangesList of ORFs

## -- P --

parseCigar | Shift ribo-seq reads using cigar string

## -- R --

rankOrder | ORF rank in transcripts
reassignTSSbyCage | Reassign all Transcript Start Sites (TSS)
reduceKeepAttr | Reduce GRanges / GRangesList
regroupRleList | Regroup rle from GRangesList
removeMetaCols | Removes meta columns
riboSeqReadWidths | Get RiboSeq widths
ribosomeReleaseScore | Ribosome Release Score (RRS)
ribosomeStallingScore | Ribosome Stalling Score (RSS)

## -- S --

seqnamesPerGroup | Get list of seqnames per granges group
shiftFootprints | Shift footprints by selected offsets
sortPerGroup | Sort a GRangesList
startCodons | Get the Start codons(3 bases) from a GRangesList of orfs grouped by orfs
startDefinition | Returns start definitions
startSites | Get the start sites from a GRangesList of orfs grouped by orfs
stopCodons | Get the Stop codons (3 bases) from a GRangesList of orfs grouped by orfs
stopDefinition | Returns stop definitions
stopSites | Get the stop sites from a GRangesList of orfs grouped by orfs
strandBool | Get logical list of strands
strandPerGroup | Get list of strands per granges group
subsetCoverage | Subset GRanges to get coverage.
subset_to_frame | Subset GRanges to get desired frame. GRanges object should be beforehand tiled to size of 1. This subsetting takes account for strand.

## -- T --

tile1 | Tile a GRangesList by 1
translationalEff | Translational efficiency
txLen | Get transcript lengths
txNames | Get transcript names from orf names
txNamesWithLeaders | Get the transcripts that have minimum lengths of leaders and cds.
txSeqsFromFa | Get transcript sequence from a GrangesList and a faFile or BSgenome

## -- U --

uniqueGroups | Get the unique set of groups in a GRangesList
uniqueOrder | Get unique ordering for GRangesList groups
unlistGrl | Safe unlist
upstreamOfPerGroup | Get rest of objects upstream

## -- V --

validExtension | Helper function to check valid combinations of extension and cageFiveUTRs
validGRL | Helper Function to check valid GRangesList input

## -- W --

widthPerGroup | Get list of widths per granges group