Learn R Programming

⚠️There's a newer version (1.15.4) of this package.Take me there.

wrMisc (version 1.14.1)

Analyze Experimental High-Throughput (Omics) Data

Description

The efficient treatment and convenient analysis of experimental high-throughput (omics) data gets facilitated through this collection of diverse functions. Several functions address advanced object-conversions, like manipulating lists of lists or lists of arrays, reorganizing lists to arrays or into separate vectors, merging of multiple entries, etc. Another set of functions provides speed-optimized calculation of standard deviation (sd), coefficient of variance (CV) or standard error of the mean (SEM) for data in matrixes or means per line with respect to additional grouping (eg n groups of replicates). Other functions facilitate dealing with non-redundant information, by indexing unique, adding counters to redundant or eliminating lines with respect redundancy in a given reference-column, etc. Help is provided to identify very closely matching numeric values to generate (partial) distance matrixes for very big data in a memory efficient manner or to reduce the complexity of large data-sets by combining very close values. Many times large experimental datasets need some additional filtering, adequate functions are provided. Batch reading (or writing) of sets of files and combining data to arrays is supported, too. Convenient data normalization is supported in various different modes, parameter estimation via permutations or boot-strap as well as flexible testing of multiple pair-wise combinations using the framework of 'limma' is provided, too.

Copy Link

Version

Install

install.packages('wrMisc')

Monthly Downloads

1,334

Version

1.14.1

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

February 14th, 2024

Functions in wrMisc (1.14.1)

colMedSds

Standard error of median for each column by bootstrap
combineOverlapInfo

Find and combine points located very close in x/y space
combineByEitherFactor

Create factor-like column regrouping data regrouping simultaneaously by two factors
combineRedundLinesInList

Combine Redundant Lines In List
combineRedBasedOnCol

Combine/reduce redundant lines based on specified column
colorAccording2

Transform numeric values to color-gradient
colSds

sd for each column
combineAsN

Combine Vectors From List And Return Basic Count Statistics
closeMatchMatrix

Reorganize results of search for close (similar) values in matrix-view
convToNum

Convert vector to numeric
coordOfFilt

get coordinates of values/points in matrix according to filtering condition
combinatIntTable

Planing for making all multiplicative combinations
.addLetterWoLast

Add letter to all elements but not last
diffPPM

Difference in ppm between numeric values
confInt

Confidence Interval To Given Alpha
.arrLstMean

Summarize along columns of multiple arrays in list
convMatr2df

Convert matrix (eg with redundant) row-names to data.frame
.checkConsistentArrList

Check list of arrays for consistent dimensions of all arrays
correctWinPath

Correct mixed slash and backslash in file path
convColorToTransp

Assign new transparency to given colors
.compareByLogRatio

Compare by log-ratio
correctToUnique

Correct vector to unique
.arrLstSEM

Summarize along columns of mult arrays in list
cutToNgrp

Cut numeric vector to n groups (ie convert to factor)
concatMatch

Value Matching With Option For Concatenated Terms
diffCombin

Compute matrix of differences for all pairwise combinations of numeric vector
contribToContigPerFrag

Characterize individual contribution of single edges in tree-structures
.compareByPPM

Compare by PPM
.checkLegendLoc

Check argument for Location of legend
.checkLmConfInt

Compare 'dat' to confindence interval of linare model 'lMod' (eg from lm())
.combineListAnnot

Combine annotation information from list of matrixes
.checkConvt2Vect

Convert to simple vector (similar to unlist)
combineRedundLinesInListAcRef

Combine Redundant Lines In List, Deprecated
combineReplFromListToMatr

Combine replicates from list to matrix
completeArrLst

Complete list of arrays for same dimensions
combineSingleT

Get all combinations with TRUE from each column
.cutStr

Cut string to get all variants from given start with min and max length
conv01toColNa

Convert matrix of integer to matrix of x-times repeated column-names
.extrNumHeadingSepChar

Extract numbers before separator followed by alphabetic character
.datSlope

Model linear regression and optional plot
.filtSize

Filter for size
countCloseToLimits

Count from two vectors number of values close within given limits
countSameStartEnd

Count same start- and end- sites of edges (or fragments)
.allRatioMatr1to2

Calculate ratios for each column to each column of reference-matrix
.breakInSer

Get series of values after last discontinuity
.allRatios

Search character-string and cut either before or after
cutAtMultSites

Cut character-vector at multiple sites
.asDF2

Convert anything to data.frame
.checkFactor

Check Factor
.checkRegrArguments

Check regression arguments
cutArrayInCluLike

Cut 3-dim array in list of matrixes (or arrays) similar to organizing into clusters
.chooseGrpCol

Automatic choice of colors
.bringToCtr

Bring most extreme to center
.neigbDis

Distances beteenw sorted points of 2-columns
.predRes

Calculate residues of (2-dim) linear model 'lMod'-prediction of/for 'dat'
.minDif

find closest neighbour to numeric vector
.checkArgNa

Check argument names
.corDuplItemsByIncrem

Avoid duplicating items between 'curNa' and 'newNa' by incrementing digits after 'extPref' (in newNa)
.scaleSpecGrp

Rescale respective to specific group
.raiseColLowest

Raise all values close to lowest value
.scale01

Scale between 0 and 1 (main)
.compareByDiff

Compare by distance/difference
.extrNAneighb

Extract NA-neighbour values
.mergeMatrices

Merge Multiple Matrices (main)
.checkFileNameExtensions

checkFileNameExtensions Function for checking file-names.
.fuse2ArrBy2ndDim

fuse 2 instances of 3dim arr as mult cols in 3dim array
.medianSpecGrp

Rescale respective to specific group
.extrNumHeadingCap

Extract number(s) before capital character
.getAmean

Get A value for each group of replicates
.getAmean2

Get A value for each group of replicates based on comp
.setLowestTo

Set lowest value to given value
.rowGrpSds

row group sd (main)
.inspectHeader

Inspect 'matr' and check if 1st line can be used/converted as header
.getMvalue2

Get M value for each group of replicates based on comp
.rowGrpSums

row group rowSums per group (main)
.keepCenter1d

Refine/filter 'dat1' (1dim dataset, eg cluster) with aim of keeping center of data
.complCols

Search (complementing) columns for best coverage of non-NA data for rowNormalization (main)
.cutAtSearch

Search character-string and cut either before or after
.removeEmptyCol

Search for (empty) columns conaining only entries defined in 'searchFields' and remove such columns
.rowNorm

Row-normalization procedure on matrix or data.frame 'dat'
.removeCol

Remove columns indicated by col-number
.composeCallName

Compose sequence of (function-)calls
.offCenter

Return position of 'di' (numeric vector) which is most excentric (distant to 0), starts with NAs as most excentric
filtSizeUniq

Filter for unique elements
.filterNetw

Filter nodes & edges for extracting networks (main) This function allows extracting and filtering network-data based on fixed threshold (limInt) and add sandwich-nodes (nodes inter-connecting initial nodes) out of node-based queries.
.convertNa

Convert/standardize names of 'query' to standard names from 'ref'
.convertMatrToNum

Convert numeric matrix to numeric
.firstMin

Get first minimum
.rowNormFact

Obtain normalization factor (main)
.findBorderOverlaps

Find overlap instances among range of values in lines
.trimFromEnd

Trim from end
.normConstSlope

Normalize columns of 2dim matrix to common linear regression fit
.filterSw

Filter 3-dim array of numeric data (main)
.rowGrpMeans

row group mean (main)
.rowGrpCV

row group CV (main)
.mayBeNum

Check if vector may be numeric content
.normalize

Main Normalization function
.scaleXY

Scale between min and max value (main)
.keepFiniteCol

Remove all columns where all data are not finite
.sortMid

Choose most frequent or middle of sorted vector
.pasteCols

Paste-concatenate all columns of matrix
.trimRight

Trim from right
.trimLeft

Trim from Left
.uniqueWName

Check regression arguments
.growTree

Grow tree
findUsableGroupRange

Select groups within given range
extr1chan

Extract just one series, ie channel, of list of arrays
filterLiColDeList

Filter lines(rows) and/or columns from all suitable elements of list
firstOfRepeated

Find first of repeated elements
extrColsDeX

Flexible extraction of columns
findSimilFrom2sets

Find similar numeric values from two vectors/matrixes
listBatchReplace

Replacements in list
.seqCutStr

Cut string to get all variants from given start with min length, depreciated
exclExtrValues

Exclude extreme values (based on distance to mean)
fuseAnnotMatr

Fuse annotation matrix to initial matrix
.insp1dimByClustering

Segment (1-dim vector) 'dat' into clusters
.plusLowerCaps

Add lower caps to character vector
.plotCountPie

Pie plot for counting results
.replSpecChar

Replace Special Characters
.trimFromStart

Trim from start
.vector2Matr

Convert numeric vector to matrix
.retain1stPart

Trim character string: keep only text before 'sep'
exponNormalize

Normalize by adjusting exponent
extractLast2numericParts

Extract last two numeric parts from character vector
.summarizeCols

Summarize columns of matrix (or data.frame) 'x' using apply (main)
filterList

Filter for unique elements
.stackArray

Reorganize array by reducing dimension 'byDim' (similar to stack() for data-frames)
elimCloseCoord

Eliminate close (overlapping) points (in x & y space)
equLenNumber

Equal character-length number
filt3dimArr

Filter three-dimensional array of numeric data
firstOfRepLines

Reduce to first occurance of repeated lines
firstLineOfDat

Filter matrix to keep only first of repeated lines
get1stOfRepeatedByCol

Get first of repeated by column
filterNetw

Filter nodes & edges for extracting networks This function allows extracting and filtering network-data based on fixed threshold (limInt) and add sandwich-nodes (nodes inter-connecting initial nodes) out of node-based queries.
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
linModelSelect

Test multiple starting levels for linear regression model, select best and plot
htmlSpecCharConv

Html special character conversion
makeMAList

Make MA-List object
findRepeated

Find repeated elements
findCloseMatch

Find close numeric values between two vectors
extrNumericFromMatr

Extract numeric part of matrix or data.frame
gitDataUrl

Convert ulr-name for reading in raw-mode
lmSelClu

Run lm on segmented data (from clustering)
getValuesByUnique

Print matrix-content as plot
makeNRedMatr

Make non-redundant matrix
mergeMatrixList

Merge Multiple Matrices from List
listGroupsByNames

Organize values into list and sort by names
matchMatrixLinesToRef

Match All Lines of Matrix To Reference Note
mergeSelCol3

mergeSelCol3
mergeSelCol

Merge selected columns out of 2 matrix or data.frames
matchNamesWithReverseParts

Value Matching with optional reversing of sub-parts of non-matching elements
multiMatch

Simple Multi-to-Multi Matching of (Concatenated) Terms
mergeMatrices

Merge Multiple Matrices
moderTestXgrp

Multiple moderated pair-wise t-tests from limma
nFragments

Number of fragments after cut at specific character(s) within size-range
normalizeThis

Normalize data in various modes
multiCharReplace

Multiple replacement of entire character elements in simple vector, matrix or data.frame
keepCommonText

Extract Longest Common Text Out Of Character Vector
levIndex

Transform (factor) levels into index
nonredDataFrame

Filter for unique elements
minDiff

Minimum distance/difference between values
matchSampToPairw

Match names to concatenated pairs of names
packageDownloadStat

Simple Package Download Statistics from CRAN
lrbind

rbind on lists
matr2list

Transform columns of matrix to list of vectors
nFragments0

Number of fragments after cut at specific character(s)
moderTest2grp

Moderated pair-wise t-test from limma
pairsAsPropensMatr

Convert Pairs of Node-Names to Non-Oriented Propensity Matrix
ratioAllComb

Calculate all ratios between x and y
reduceTable

Reduce table by aggregating smaller groups
randIndFx

Distance of categorical data (Jaccard, Rand and adjusted Rand index)
rankToContigTab

Contingenty tables for fit of ranking
rnormW

Normal random number generation with close fit to expected mean and sd
regrBy1or2point

Rescaling according to reference data using linear regression.
rowCVs

rowCVs
ratioToPpm

Convert ratio to ppm
orderMatrToRef

Order Lines of Matrix According to Reference (Character) Vector
nNonNumChar

Count number of non-numeric characters
numPairDeColNames

Extract pair of numeric values from vector or column-names
sysDate

System-date (compressed format)
searchLinesAtGivenSlope

Search points forming lines at given slope
regrMultBy1or2point

Rescaling of multiple data-sets according to reference data using regression
simpleFragFig

Simple figure showing line from start- to end-sites of edges (or fragments) defined by their start- and end-sites simpleFragFig draws figure showing start- and end-sites of edges (or fragments)
tTestAllVal

t.test on all individual values against all other values
renameColumns

Rename columns
partUnlist

Partial unlist of lists of lists
rowGrpCV

Row group CV
rowGrpMeans

rowMeans with destinction of groups (of columns, eg groups of replicates)
fusePairs

Fuse pairs to generate cluster-names
extrSpcText

Extract specific text
fuseCommonListElem

Fuse content of list-elements with redundant (duplicated) names
pasteC

Advanced paste-collapse
searchDataPairs

Search duplicated data over multiple columns, ie pairs of data
readCsvBatch

Read batch of csv-files
sortByNRepeated

Make a list of common occurances sorted by number of repeats
upperMaCoord

(upper) pairwise x,y combinations
singleLineAnova

2-factorial Anova on single line of data
partialDist

Partial distance matrix (focus on closest)
scaleXY

Scale data to given minimum and maxiumum
stableMode

Estimate mode (most frequent value)
readTabulatedBatch

Batch reading of Tabulated Text-Files
withinRefRange

Check for values within range of reference
nonAmbiguousNum

make numeric vector non-ambiguous (ie unique)
presenceFilt

Filter lines of matrix for max number of NAs
mergeVectors

Merge Named Vectors
readVarColumns

Read tabular content of files with variable number of columns
mergeW2

Extended version of merge for multiple objects (even without rownames)
nonRedundLines

Non-redundant lines of matrix
naOmit

Fast na.omit
presenceGrpFilt

Filter for each group of columns for sufficient data as non-NA
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns
protectSpecChar

Protect Special Characters
readXlsxBatch

Read Batch of Excel xlsx-Files
reorgByCluNo

Reorganize matrix according to clustering-output
rowGrpNA

Count number of NAs per row and group of columns
nonAmbiguousMat

Transform matrix to non-ambiguous matrix (in respect to given column)
organizeAsListOfRepl

(re)organize data of (3-dim) array as list of replicates
triCoord

Pairwise x,y combinations
replPlateCV

CV of replicate plates (list of matrixes)
replicateStructure

Search and Select Groups of Replicates
rowGrpSds

Per line and per group sd-values
replNAbyLow

Replace NAs by low values
rowGrpSums

rowSums with destinction of groups (of columns, eg groups of replicates)
rowMedSds

sd of median for each row by bootstrap
rowSds

sd for each row (fast execution)
standardW

Standardize (scale) data
stdErrMedBoot

Standard eror of median by boot-strap
transpGraySca

Make single vector gray-gradient
sampNoDeMArrayLM

Locate Sample Index From Index or Name Of Pair-Wise Comparisons in list or MArrayLM-Object
unifyEnumerator

Unify Enumerators
uniqCountReport

Report number of unique and redundant elements (optional figure)
writeCsv

Write (and convert) csv files
trimRedundText

Trim redundant text
treatTxtDuplicates

Locate duplicates in text and make non-redundant
rmDupl2colMatr

Remove lines of matrix redundant /duplicated for 1st and 2nd column
pVal2lfdr

Convert p-values to lfdr
rmEnumeratorName

Remove or rename enumerator tag/name (or remove entire enumerator) from tailing enumerators
rowNormalize

Row Normalize
rowSEMs

SEM for each row
sumNAperGroup

Count number of NAs per sub-set of columns
test2factLimma

2-factorial limma-style t-test
summarizeCols

Summarize columns (as median,mean,min,last or other methods)
tableToPlot

Print matrix-content as plot
adjustUnitPrefix

Adjust Value With Different Decimal Prefixes To Single Prefix Plus Unit
appendNR

Append vectors or lists, without duplcating common elements
asSepList

Organize Data as Separate List-Entries
XYToDiffPpm

Express difference as ppm
cbindNR

cbind to non-redundant
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
addBeforFileExtension

Add text before file-extension
arrayCV

CV of array
checkAvSd

Check how multiple groups of data separate or overlap based on mean +/- sd
checkGrpOrderSEM

Check order of multiple groups including non-overlapping SEM-margins
checkStrictOrder

Check for strict (ascencing or descending) order
checkSimValueInSer

Check for similar values in series
checkVectLength

Check length of vector
coinPermTest

Compare means of two vectors by permutation test
checkFilePath

Check If File Is Available For Reading
checkGrpOrder

checkGrpOrder
cleanReplicates

Replace Most Distant Values by NA
buildTree

Connect edges to from tree and extract all possible branches