Learn R Programming

wrMisc (version 2.0.0)

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). A group of 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. Other functions help aligning a matrix or data.frame to a reference using partial matching or to mine an experimental setup to extract patterns of replicate samples. Many times large experimental datasets need some additional filtering, adequate functions are provided. 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. Batch reading (or writing) of sets of files and combining data to arrays is supported, too.

Copy Link

Version

Install

install.packages('wrMisc')

Monthly Downloads

1,293

Version

2.0.0

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

March 9th, 2026

Functions in wrMisc (2.0.0)

cleanReplicates

Replace Most Distant Values by NA
checkGrpOrder

checkGrpOrder
checkVectLength

Check length of vector
chooseGroupNames

Choose Column Most Likely For Sample-Names
checkSimValueInSer

Check for similar values in series
checkGrpOrderSEM

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

Check for strict (ascencing or descending) order
checkUnitPrefix

Check For Common Unit-Name in Text
closeMatchMatrix

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

Combine Vectors From List And Return Basic Count Statistics
combineByEitherFactor

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

rowCVs
colorAccording2

Transform Numeric Values To Color-Gradient
colMedSds

Standard Error Of Median For Each Column By Bootstrap
combinatIntTable

Planing for making all multiplicative combinations
colSds

sd for each column
coinPermTest

Compare Means Of Two Vectors By Permutation Test
combineRedBasedOnCol

Combine/reduce redundant lines based on specified column
combineOverlapInfo

Find And Combine Points Located Very Close In x/y Space
contribToContigPerFrag

Characterize individual contribution of single edges in tree-structures
combineReplFromListToMatr

Combine replicates from list to matrix
concatMatch

Value Matching With Option For Concatenated Terms
convColorToTransp

Assign new transparency to given colors
confInt

Confidence Interval To Given Alpha
completeArrLst

Complete list of arrays for same dimensions
conv01toColNa

Convert matrix of integer to matrix of x-times repeated column-names
combineSingleT

Get All Combinations With TRUE From Each Column
combineRedundLinesInListAcRef

Combine Redundant Lines In List, Deprecated
combineRedundLinesInList

Combine Redundant Lines In List
coordOfFilt

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

Cut character-vector at multiple sites
convMatr2df

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

Count From Two Vectors Number Of Values Close Within Given Limits
correctWinPath

Correct Mixed Slash And Backslash In File-Path
countSameStartEnd

Count Same Start- And End- Sites Of Edges (Or Fragments)
cutArrayInCluLike

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

Cut numeric vector to n groups (ie convert to factor)
.allRatioMatr1to2

Calculate ratios for each column to each column of reference-matrix
diffPPM

Difference in ppm between numeric values
diffCombin

Compute Matrix Of Differences For All Pairwise Combinations Of Numeric Vector
.addLetterWoLast

Add letter to all elements but not last
.allRatios

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

Summarize along columns of multiple arrays in list
correctToUnique

Correct vector to unique
.checkLegendLoc

Check argument for Location of legend
.checkFileNameExtensions

Check File Name Extensions Function for checking file-names.
convToNum

Convert Vector To Numeric
.checkFactor

Check Factor
.checkConvt2Vect

Convert To Simple Vector (similar to unlist)
.arrLstSEM

Summarize along columns of mult arrays in list
.asDF2

Convert anything to data.frame
.bringToCtr

Bring most extreme to center
.chooseGrpCol

Automatic choice of colors
.breakInSer

Get series of values after last discontinuity
.compareByPPM

Compare by PPM
.checkRegrArguments

Check regression arguments
.checkLmConfInt

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

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

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

Combine annotation information from list of matrixes
.extrNumHeadingCap

Extract number(s) before capital character
.extrNAneighb

Extract NA-neighbour values
.cutAtSearch

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

Check argument names
.convertMatrToNum

Convert numeric matrix to numeric
.composeCallName

Compose Sequence Of (Function-)Calls
.checkConsistentArrList

Check list of arrays for consistent dimensions of all arrays
.fuse2ArrBy2ndDim

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

Get A value for each group of replicates
.compareByDiff

Compare by distance/difference
.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.
.datSlope

Model linear regression and optional plot
.keepCenter1d

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

Remove all columns where all data are not finite
.complCols

Search (complementing) Columns For Best Coverage Of Non-NA Data For rowNormalization (main)
.doubleExt

Return File-name Extensions Including Double Extensions (eg txt.gz)
.extrNumHeadingSepChar

Extract numbers before separator followed by alphabetic character
.insp1dimByClustering

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

Filter for size
.filterSw

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

Compare by log-ratio
.inspectHeader

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

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

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

Remove columns indicated by col-number
.growTree

Grow Tree
.getPWseparator

Find Separator In Vector Of Pairwise Group-Names This function allows identifing separator used when pairwise groups are presented.
.neigbDis

Distances beteenw sorted points of 2-columns
.normConstSlope

Normalize Columns Of 2-dim Matrix To Common Linear Regression Fit
.pasteCols

Paste-concatenate all columns of matrix
.normalize

Main Normalization function
.rowGrpMeans

row group mean (main)
.rowGrpCV

row group CV (main)
.medianSpecGrp

Rescale respective to specific group
.mayBeNum

Check if vector may be numeric content
.raiseColLowest

Raise all values close to lowest value
.stackArray

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

Set lowest value to given value
.sortMid

Choose most frequent or middle of sorted vector
.predRes

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

Trim From Left Side
.mergeMatrices

Merge Multiple Matrices (main)
.summarizeCols

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

find closest neighbour to numeric vector
.rowGrpSds

row group sd (main)
.rowGrpSums

row group rowSums per group (main)
.trimFromEnd

Trim from end (Deprecated)
.scaleSpecGrp

Rescale respective to specific group
.scale01

Scale between 0 and 1 (main)
extrNumericFromMatr

Extract numeric part of matrix or data.frame
.findBorderOverlaps

Find overlap instances among range of values in lines
.getMvalue2

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

Get first minimum
.trimRight

Trim From Right Side
extrSpcText

Extract specific text
.getAmean2

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

Obtain Normalization Factor (main)
elimCloseCoord

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

Filter For UniqueElements
.uniqueWName

Check regression arguments
extrColsDeX

Flexible extraction of columns
extr1chan

Extract Just One Series, ie One Channel, Of List Of Arrays
fuseCommonListElem

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

Convert numeric vector to matrix
equLenNumber

Equal character-length number
.rowNorm

Row-normalization Procedure On Matrix Or Data.frame (main)
.plotCountPie

Pie plot for counting results
findSimilFrom2sets

Find similar numeric values from two vectors/matrixes
fusePairs

Fuse pairs to generate cluster-names
filterLiColDeList

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

Find first of repeated elements
fuseAnnotMatr

Fuse annotation matrix to initial matrix
firstLineOfDat

Filter matrix to keep only first of repeated lines
.trimFromStart

Trim from start (Deprecated)
extractLast2numericParts

Extract Last Two Numeric Parts From Character Vector
keepCommonText

Extract Longest Common Text Out Of Character Vector
levIndex

Transform (factor) levels into index
getValuesByUnique

Print matrix-content as plot
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
makeMAList

Make MA-List Object
firstOfRepLines

Reduce To First Occurance Of Repeated Lines
linModelSelect

Test Multiple Starting Levels For Linear Regression Model, Select Best And Plot
makeNRedMatr

Make non-redundant matrix
matchNamesWithReverseParts

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

Select groups within given range
matchMatrixLinesToRef

Match All Lines of Matrix To Reference Note
gitDataUrl

Convert ulr-name for reading in raw-mode
matchSampToPairw

Match Names To Concatenated Pairs Of Names
lrbind

rbind on lists
matr2list

Transform columns of matrix to list of vectors
lmSelClu

Run lm on segmented data (from clustering)
.plusLowerCaps

Add lower caps to character vector
.retain1stPart

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

Filter three-dimensional array of numeric data
get1stOfRepeatedByCol

Get First Of Repeated By Column
.scaleXY

Scale between min and max value (main)
.replSpecChar

Replace Special Characters
getPWseparator

Identify Separator In Pairwise Group-Names Or Find Separator For Use With Pairwise Group-Names This function allows identifing separator used when pairwise groups are presented.
filterList

Filter for unique elements
exclExtrValues

Exclude extreme values (based on distance to mean)
exponNormalize

Normalize By Adjusting Exponent
.seqCutStr

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

Replacements in list
listGroupsByNames

Organize Values Into List And Sort By Names
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.
findCloseMatch

Find Close Numeric Values Between Two Vectors
minDiff

Minimum distance/difference between values
findRepeated

Find repeated elements
htmlSpecCharConv

Html Special Character Conversion
indexGroupsFromPW

Index Names Of Groups From Vector Of Concatenated Pairwise Group-Names
mergeW2

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

Merge Named Vectors
nonAmbiguousNum

Make numeric vector non-ambiguous (ie unique)
moderTestXgrp

Multiple Moderated Pairwise t-tests From limma
multiCharReplace

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

Fast na.omit
mergeMatrices

Merge Multiple Matrices
nonAmbiguousMat

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

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

mergeSelCol3
nNonNumChar

Count number of non-numeric characters
nFragments0

Number Of Fragments After Cut At Specific Character(s)
mergeMatrixList

Merge Multiple Matrices from List
normalizeThis

Normalize Data In Various Modes
nonredDataFrame

Filter for unique elements
moderTest2grp

Moderated Pair-Wise t-test From Limma
pasteC

Advanced paste-collapse
partialDist

Partial distance matrix (focus on closest)
presenceFilt

Filter Lines Of Matrix For Max Number Of NAs
organizeAsListOfRepl

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

Partial unlist of lists of lists
nonRedundLines

Non-Redundant Lines Of Matrix
numPairDeColNames

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

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

Convert p-values to lfdr
nFragments

Number Of Fragments After Cut At Specific Character(s) Within Size-range
pairsAsPropensMatr

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

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

Simple Package Download Statistics From CRAN
readCsvBatch

Read batch of csv-files
readTabulatedBatch

Batch Reading Of Tabulated Text-Files
presenceGrpFilt

Filter For Each Group Of Columns For Sufficient Data As Non-NA
protectSpecChar

Protect Special Characters
randIndFx

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

Contingenty tables for fit of ranking
readXlsxBatch

Read Batch of Excel xlsx-Files
readVarColumns

Read Tabular Content Of Files With Variable Number Of Columns
regrMultBy1or2point

Rescaling Of Multiple Data-Sets According To Reference Data Using Regression
reorgByCluNo

Reorganize matrix according to clustering-output
replNAbyLow

Replace NAs by low values
replPlateCV

CV of replicate plates (list of matrixes)
ratioAllComb

Calculate all ratios between x and y
rmDupl2colMatr

Remove Lines Of Matrix Redundant /Duplicated For 1st And 2nd Column
ratioToPpm

Convert ratio to ppm
replicateStructure

Search and Select Groups of Replicates
reduceTable

Reduce table by aggregating smaller groups
renameColumns

Rename columns
regrBy1or2point

Rescaling According To Reference Data Using Linear Regression.
rmOrphans

Remove or Reassign Orphan Indexes
rmEnumeratorName

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

Row group CV
rowCVs

rowCVs
rowGrpSds

Per line and per group sd-values
rowGrpSums

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

Trim/Remove Redundant Words
sampNoDeMArrayLM

Locate Sample Index From Index Or Name Of Pair-Wise Comparisons In List Or MArrayLM-Object
singleLineAnova

2-factorial Anova on single line of data
scaleXY

Scale data to given minimum and maxiumum
rowSEMs

SEM for each row
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)
rnormW

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

sd for each row (fast execution)
rowGrpNA

Count number of NAs per row and group of columns
replacePWseparator

Replace Separator In Vector Of Pairwise Group-Names This function allows identifying and substituting a separator used in a character vector concatenated of pairwise groups.
rowGrpMeans

Row-Means With Destinction Of Groups (Of Columns, eg Groups Of Replicates)
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns
rowNormalize

Row Normalize
rowMedSds

Estimate sd Of Median For Each Row By Bootstrap
stdErrMedBoot

Standard Eror Of Median by Boot-Strap
sumNAperGroup

Count number of NAs per sub-set of columns
tTestAllVal

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

Print matrix-content as plot
trimmedMean

Trimmed Mean
sortByNRepeated

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

Unify Enumerators
top3mean

Mean Of 3 Highest Values
summarizeCols

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

System-date (compressed format)
test2factLimma

2-Factorial Limma-Style t-Test
searchDataPairs

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

Estimate Mode (Most Frequent Value)
searchLinesAtGivenSlope

Search Points Forming Lines At Given Slope
transpGraySca

Make single vector gray-gradient
treatTxtDuplicates

Locate duplicates in text and make non-redundant
trimRedundText

Trim redundant text
triCoord

Pairwise x,y Combinations
uniqCountReport

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

(upper) pairwise x,y combinations
standardW

Standardize (scale) data
withinRefRange

Check For Values Within Range Of Reference
writeCsv

Write (And Convert) Csv Files
adjustUnitPrefix

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

Organize Data as Separate List-Entries
buildTree

Connect edges to from tree and extract all possible branches
arrayCV

CV of array
XYToDiffPpm

Express difference as ppm
checkAvSd

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

Append vectors or lists, without duplcating common elements
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
addBeforFileExtension

Add text before file-extension
cbindNR

cbind to non-redundant
checkFilePath

Verify File-name If Existing (in specified path), If Has Proper Extension Or Select Files With Proper Extension From Given Path