Learn R Programming

wrMisc (version 2.1.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). 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,495

Version

2.1.1

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

July 20th, 2026

Functions in wrMisc (2.1.1)

appendNR

Append vectors or lists, without duplcating common elements
blockNormalize

Normalize Blockwise Two Or Three Datasets
addBeforFileExtension

Add Text Before File-Extension
asSepList

Organize Data As Separate List-Entries
buildTree

Connect edges to from tree and extract all possible branches
cbindNR

cbind to non-redundant
chooseGroupNames

Choose Column Most Likely For Sample-Names
checkUnitPrefix

Check For Common Unit-Name in Text
checkFilePath

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

Check Order Of Multiple Groups Including Non-Overlapping SEM-Margins
checkAvSd

Check How Multiple Groups Of Data Separate Or Overlap Based On Mean +/- Sd
checkVectLength

Check length of vector
checkStrictOrder

Check for strict (ascencing or descending) order
checkSimValueInSer

Check for similar values in series
checkGrpOrder

Check Order Of Groups
closeMatchMatrix

Reorganize Results Of Search For Close (Similar) Values In Matrix-view
cleanReplicates

Replace Most Distant Values by NA
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
combineOverlapInfo

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

Complete List Of Arrays For Same Dimensions
contribToContigPerFrag

Characterize Individual Contribution Of Single Edges In Tree-Structures
confInt

Confidence Interval To Given Alpha
combineReplFromListToMatr

Combine replicates from list to matrix
combineRedBasedOnCol

Combine/reduce redundant lines based on specified column
combineSingleT

Get All Combinations With TRUE From Each Column
combineRedundLinesInListAcRef

Combine Redundant Lines In List, Deprecated
combineRedundLinesInList

Combine Redundant Lines In List
concatMatch

Value Matching With Option For Concatenated Terms
conv01toColNa

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

Correct Mixed Slash And Backslash In File-Path
convToNum

Convert Vector To Numeric
convMatr2df

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

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

Correct vector to unique
countCloseToLimits

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

Assign new transparency to given colors
convPairwiseSetup

Check Comparison-Choice
countSameStartEnd

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

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

Search character-string and cut either before or after
cutAtMultSites

Cut Character-Vector At Multiple Sites
cutArrayInCluLike

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

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

Summarize along columns of mult arrays in list
.allRatioMatr1to2

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

Difference in ppm between numeric values
.addLetterWoLast

Add letter to all elements but not last
.arrLstMean

Summarize along columns of multiple arrays in list
.checkConsistentArrList

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

Check Factor
.checkConvt2Vect

Convert To Simple Vector (similar to unlist)
.checkFileNameExtensions

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

Check argument names
.breakInSer

Get series of values after last discontinuity
.asDF2

Convert anything to data.frame
.bringToCtr

Bring most extreme to center
.chooseGrpCol

Automatic choice of colors
.checkRegrArguments

Check regression arguments
.complCols

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

Compare by distance/difference
.convertMatrToNum

Convert numeric matrix to numeric
.combineListAnnot

Combine annotation information from list of matrixes
.checkLmConfInt

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

Check argument for Location of legend
.compareByLogRatio

Compare by log-ratio
.convertNa

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

Compare by PPM
.composeCallName

Compose Sequence Of (Function-)Calls
.filtSize

Filter for size
.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.
.extrNAneighb

Extract NA-neighbour values
.doubleExt

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

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

Extract numbers before separator followed by alphabetic character
.extrNumHeadingCap

Extract number(s) before capital character
.datSlope

Model linear regression and optional plot
.cutStr

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

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

Find overlap instances among range of values in lines
.filterSw

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

Get first minimum
.getAmean2

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

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

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

Get A value for each group of replicates
.fuse2ArrBy2ndDim

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

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

Grow Tree
.mergeMatrices

Merge Multiple Matrices (main)
.minDif

find closest neighbour to numeric vector
.neigbDis

Distances beteenw sorted points of 2-columns
.keepFiniteCol

Remove all columns where all data are not finite
.mayBeNum

Check if vector may be numeric content
.normalize

Main Normalization function
.keepCenter1d

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

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

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

Rescale respective to specific group
.retain1stPart

Trim character string: keep only text before 'sep'
.pasteCols

Paste-concatenate all columns of matrix
.plotCountPie

Pie plot for counting results
.replSpecChar

Replace Special Characters
.rowGrpCV

row group CV (main)
.predRes

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

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

Add lower caps to character vector
.raiseColLowest

Raise all values close to lowest value
.removeCol

Remove columns indicated by col-number
.rowGrpSums

row group rowSums per group (main)
.scaleSpecGrp

Rescale respective to specific group
.rowNormFact

Obtain Normalization Factor (main)
.scaleXY

Scale between min and max value (main)
.seqCutStr

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

row group mean (main)
.setLowestTo

Set lowest value to given value
.rowGrpSds

row group sd (main)
.scale01

Scale between 0 and 1 (main)
.summarizeCols

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

Trim from start (Deprecated)
.vector2Matr

Convert numeric vector to matrix
.sortMid

Choose most frequent or middle of sorted vector
.rowNorm

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

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

Check regression arguments
.trimRight

Trim From Right Side
.trimFromEnd

Trim from end (Deprecated)
.trimLeft

Trim From Left Side
elimCloseCoord

Eliminate Close (Overlapping) Points (in x & y space)
extrSpcText

Extract Specific Text
equLenNumber

Equal character-length number
extr1chan

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

Extract numeric part of matrix or data.frame
exclExtrValues

Exclude Extreme Values (Based On Distance To Mean)
extrColsDeX

Flexible extraction of columns
filtSizeUniq

Filter For UniqueElements
filt3dimArr

Filter three-dimensional array of numeric data
extractLast2numericParts

Extract Last Two Numeric Parts From Character Vector
exponNormalize

Normalize By Adjusting Exponent
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.
filterLiColDeList

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

Find Close Numeric Values Between Two Vectors
findUsableGroupRange

Select Groups Within Given Range
findRepeated

Find Repeated Elements
findHeadAndTail

Find Group-Names In Pairwise Combined And Isolate Separator
filterList

Filter for unique elements
findSimilFrom2sets

Find Similar Numeric Values From Two Vectors/Matrixes
firstLineOfDat

Filter matrix to keep only first of repeated lines
firstOfRepLines

Reduce To First Occurance Of Repeated Lines
gitDataUrl

Convert GitHub Url-Name For Reading In Raw-Mode
fusePairs

Fuse pairs to generate cluster-names
getPairwiseSetup

Extract Pairwise Testing Setup
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.
fuseAnnotMatr

Fuse annotation matrix to initial matrix
firstOfRepeated

Find first of repeated elements
fuseCommonListElem

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

Html Special Character Conversion
getValuesByUnique

Print matrix-content as plot
get1stOfRepeatedByCol

Get First Of Repeated By Column
lmSelClu

Run lm on segmented data (from clustering)
keepCommonText

Extract Longest Common Text Out Of Character Vector
linModelSelect

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

Fit linear regression, return parameters and p-values
levIndex

Transform (factor) levels into index
makeMAList

Make MA-List Object
lrbind

rbind on lists
listBatchReplace

Replacements in list
indexGroupsFromPW

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

Organize Values Into List And Sort By Names
mergeMatrices

Merge Multiple Matrices
mergeMatrixList

Merge Multiple Matrices from List
matchSampToPairw

Match Names To Concatenated Pairs Of Names
matchMatrixLinesToRef

Match All Lines of Matrix To Reference Note
mergeSelCol

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

Make non-redundant matrix
matchNamesWithReverseParts

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

Transform columns of matrix to list of vectors
mergeVectors

Merge Named Vectors
mergeSelCol3

mergeSelCol3
nFragments

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

Minimum distance/difference between values
moderTestXgrp

Multiple Moderated Pairwise t-tests From Limma
nNonNumChar

Count number of non-numeric characters
nFragments0

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

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

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

Moderated Pairwise t-test From Limma
naOmit

Fast na.omit
mergeW2

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

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

Make numeric vector non-ambiguous (ie unique)
pVal2lfdr

Convert p-values to lfdr
nonredDataFrame

Filter for unique elements
nonRedundLines

Non-Redundant Lines Of Matrix
orderMatrToRef

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

Normalize Data In Various Modes
nonAmbiguousMat

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

Simple Package Download Statistics From CRAN
organizeAsListOfRepl

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

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

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

Suggestions Of Collections Of Classical Separators For Pairwise Combinations
rankToContigTab

Contingenty tables for fit of ranking
partUnlist

Partial unlist of lists of lists
presenceFilt

Filter Lines Of Matrix For Max Number Of NAs
randIndFx

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

Protect Special Characters
partialDist

Partial distance matrix (focus on closest)
pasteC

Advanced paste-collapse
readVarColumns

Read Tabular Content Of Files With Variable Number Of Columns
regrBy1or2point

Rescaling According To Reference Data Using Linear Regression.
ratioAllComb

Calculate all ratios between x and y
regrMultBy1or2point

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

Read Batch of Excel xlsx-Files
reduceTable

Reduce table by aggregating smaller groups
readTabulatedBatch

Batch Reading Of Tabulated Text-Files
ratioToPpm

Convert ratio to ppm
readCsvBatch

Read batch of csv-files
renameColumns

Rename columns
rmEnumeratorName

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

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

Reorganize matrix according to clustering-output
rmSharedWords

Trim/Remove Redundant Words
rmDupl2colMatr

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

Search and Select Groups of Replicates
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.
replPlateCV

CV of replicate plates (list of matrixes)
replNAbyLow

Replace NAs By Low Balues
rmOrphans

Remove or Reassign Orphan Indexes
rowMedSds

Estimate sd Of Median For Each Row By Bootstrap
rowCVs

rowCVs
rowGrpNA

Count Number Of NAs Per Row And Group Of Columns
rowGrpCV

Row group CV
rowGrpMeans

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

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

Per line and per group sd-values
rowSEMs

SEM for each row
rowSds

sd for each row (fast execution)
rowNormalize

Row Normalize
singleLineAnova

2-factorial Anova on single line of data
sortByNRepeated

Make A List Of Common Occurances Sorted By Number Of Repeats
simpleFragFig

Simple Figure Showing Line From Start- To End-Sites Of Edges (Or Fragments) Defined By Their Start- And End-Sites This function draws av figure showing start- and end-sites of edges (or fragments) .
sampNoDeMArrayLM

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

Search Points Forming Lines At Given Slope
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns
stableMode

Estimate Mode (Most Frequent Value)
scaleXY

Rescale Data To Given Minimum- And Maxiumum- Values
searchDataPairs

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

Standardize (scale) data
tableToPlot

Print matrix-content as plot
test2factLimma

2-Factorial Limma-Style t-Test
tTestAllVal

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

Count number of NAs per sub-set of columns
top3mean

Mean Of 3 Highest Values
transpGraySca

Make single vector gray-gradient
stdErrMedBoot

Standard Eror Of Median by Boot-Strap
sysDate

System-date (compressed format)
summarizeCols

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

Locate duplicates in text and make non-redundant
trimmedMean

Trimmed Mean
upperMaCoord

(upper) pairwise x,y combinations
unifyEnumerator

Unify Enumerators
withinRefRange

Check For Values Within Range Of Reference
triCoord

Pairwise x,y Combinations
volcanoFilter

Filter Statistical Testing Results in Volcano-Plot Like Fashion This function allows filtering statistical testing results combined with M-values (log2 fold-change) and other filtering criteria. All suitable values can be extracted from objects created from package wrProteo (and limma) may get used automatically. The outcome can be used for Volcano-plots or exporting tables.
uniqCountReport

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

Vector Distance and Angle
trimRedundText

Trim redundant text
truncateVect

Truncating Text Vector To Specific Length
writeCsv

Write (And Convert) Csv Files
XYToDiffPpm

Express difference as ppm
adjBy2ptReg

Adjust Values By Two-Point Regression
arrayCV

CV of array
addBeforeFileExtension

Add Text Before File-Extension
adjustUnitPrefix

Adjust Value With Different Decimal Prefixes To Single Prefix Plus Unit