maxLocation {GeneStructureTools} | R Documentation |
Find the largest distance between two vectors of numbers Helper function for get_orfs
maxLocation(startSite, stopSite, longest = 1)
startSite |
vector of start sites - i.e Met amino acid positions |
stopSite |
vector of stop sites - i.e Stop (*) amino acid positions |
longest |
which pair to return (1 = longest pair, 2= 2nd longest pair etc.) |
sequential start site and end site with the greatest difference
Beth Signal
Other ORF annotation: getOrfs
,
getUOrfs
, orfSimilarity
starts <- c(1,10,15,25) stops <- c(4,16,50,55) # longest start site = 25, longest stop site = 50 maxLocation(starts, stops, longest = 1) starts <- c(1,10,15,25) stops <- c(4,14,50,55) # longest start site = 15, longest stop site = 50 maxLocation(starts, stops, longest = 1) # 2nd longest start site = 10, 2nd longest stop site = 14 maxLocation(starts, stops, longest = 2)