Learn R Programming

wrMisc (version 1.15.3.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,456

Version

1.15.3.1

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

April 1st, 2025

Functions in wrMisc (1.15.3.1)

adjustUnitPrefix

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

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

Organize Data as Separate List-Entries
XYToDiffPpm

Express difference as ppm
addBeforFileExtension

Add text before file-extension
cleanReplicates

Replace Most Distant Values by NA
checkStrictOrder

Check for strict (ascencing or descending) order
checkVectLength

Check length of vector
coinPermTest

Compare Means Of Two Vectors By Permutation Test
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
checkGrpOrder

checkGrpOrder
closeMatchMatrix

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

Check for similar values in series
combineByEitherFactor

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

Transform Numeric Values To Color-Gradient
colSds

sd for each column
combineOverlapInfo

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

Planing for making all multiplicative combinations
colCVs

rowCVs
colMedSds

Standard Error Of Median For Each Column By Bootstrap
combineRedundLinesInList

Combine Redundant Lines In List
combineRedBasedOnCol

Combine/reduce redundant lines based on specified column
convColorToTransp

Assign new transparency to given colors
convMatr2df

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

Characterize individual contribution of single edges in tree-structures
conv01toColNa

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

Combine Vectors From List And Return Basic Count Statistics
cutArrayInCluLike

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

Get all combinations with TRUE from each column
cutAtMultSites

Cut character-vector at multiple sites
completeArrLst

Complete list of arrays for same dimensions
coordOfFilt

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

Convert Vector To Numeric
correctWinPath

Correct mixed slash and backslash in file path
.checkArgNa

Check argument names
correctToUnique

Correct vector to unique
.bringToCtr

Bring most extreme to center
countCloseToLimits

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

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

Convert to simple vector (similar to unlist)
.checkConsistentArrList

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

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

Combine annotation information from list of matrixes
.allRatioMatr1to2

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

Combine Redundant Lines In List, Deprecated
.compareByDiff

Compare by distance/difference
.corDuplItemsByIncrem

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

Check regression arguments
diffPPM

Difference in ppm between numeric values
.compareByLogRatio

Compare by log-ratio
.chooseGrpCol

Automatic choice of colors
.cutAtSearch

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

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

Get first minimum
.getMvalue2

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

Grow tree
concatMatch

Value Matching With Option For Concatenated Terms
diffCombin

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

Confidence Interval To Given Alpha
cutToNgrp

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

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

Compare by PPM
.plusLowerCaps

Add lower caps to character vector
.asDF2

Convert anything to data.frame
.filterSw

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

Find overlap instances among range of values in lines
.insp1dimByClustering

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

Convert numeric matrix to numeric
.convertNa

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

Main Normalization function
.breakInSer

Get series of values after last discontinuity
.checkFactor

Check Factor
.extrNumHeadingCap

Extract number(s) before capital character
.checkFileNameExtensions

checkFileNameExtensions Function for checking file-names.
combineReplFromListToMatr

Combine replicates from list to matrix
.raiseColLowest

Raise all values close to lowest value
.offCenter

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

Remove columns indicated by col-number
.sortMid

Choose most frequent or middle of sorted vector
.stackArray

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

Summarize along columns of multiple arrays in list
.vector2Matr

Convert numeric vector to matrix
.arrLstSEM

Summarize along columns of mult arrays in list
.cutStr

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

Model linear regression and optional plot
.addLetterWoLast

Add letter to all elements but not last
.checkLegendLoc

Check argument for Location of legend
.extrNAneighb

Extract NA-neighbour values
.doubleExt

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

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

row group mean (main)
.complCols

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

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

Compose sequence of (function-)calls
.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.
.filtSize

Filter for size
.rowGrpSds

row group sd (main)
elimCloseCoord

Eliminate close (overlapping) points (in x & y space)
.mayBeNum

Check if vector may be numeric content
.keepCenter1d

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

Extract specific text
extractLast2numericParts

Extract last two numeric parts from character vector
.extrNumHeadingSepChar

Extract numbers before separator followed by alphabetic character
.getAmean

Get A value for each group of replicates
.scaleSpecGrp

Rescale respective to specific group
exponNormalize

Normalize by adjusting exponent
.removeEmptyCol

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

Trim From Right Side
.scaleXY

Scale between min and max value (main)
.scale01

Scale between 0 and 1 (main)
.replSpecChar

Replace Special Characters
.rowNormFact

Obtain normalization factor (main)
extr1chan

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

Filter three-dimensional array of numeric data
filtSizeUniq

Filter for unique elements
findUsableGroupRange

Select groups within given range
.getAmean2

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

Rescale respective to specific group
equLenNumber

Equal character-length number
exclExtrValues

Exclude extreme values (based on distance to mean)
.rowGrpSums

row group rowSums per group (main)
.mergeMatrices

Merge Multiple Matrices (main)
.minDif

find closest neighbour to numeric vector
.rowNorm

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

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

Trim from end (Deprecated)
.trimFromStart

Trim from start (Deprecated)
.normConstSlope

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

Trim From Left Side
extrNumericFromMatr

Extract numeric part of matrix or data.frame
extrColsDeX

Flexible extraction of columns
.neigbDis

Distances beteenw sorted points of 2-columns
findSimilFrom2sets

Find similar numeric values from two vectors/matrixes
findRepeated

Find repeated elements
htmlSpecCharConv

Html Special Character Conversion
firstLineOfDat

Filter matrix to keep only first of repeated lines
levIndex

Transform (factor) levels into index
keepCommonText

Extract Longest Common Text Out Of Character Vector
matchNamesWithReverseParts

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

Remove all columns where all data are not finite
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
.uniqueWName

Check regression arguments
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
listBatchReplace

Replacements in list
multiMatch

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

Match names to concatenated pairs of names
mergeMatrixList

Merge Multiple Matrices from List
multiCharReplace

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

Convert ulr-name for reading in raw-mode
get1stOfRepeatedByCol

Get first of repeated by column
getValuesByUnique

Print matrix-content as plot
fusePairs

Fuse pairs to generate cluster-names
lrbind

rbind on lists
.plotCountPie

Pie plot for counting results
.pasteCols

Paste-concatenate all columns of matrix
moderTest2grp

Moderated Pair-Wise t-test From Limma
linModelSelect

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

Count number of non-numeric characters
moderTestXgrp

Multiple moderated pair-wise t-tests from limma
nonAmbiguousMat

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

Make numeric vector non-ambiguous (ie unique)
makeMAList

Make MA-List Object
.retain1stPart

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

Fast na.omit
.rowGrpCV

row group CV (main)
partialDist

Partial distance matrix (focus on closest)
listGroupsByNames

Organize values into list and sort by names
pairsAsPropensMatr

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

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

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

Fuse annotation matrix to initial matrix
matchMatrixLinesToRef

Match All Lines of Matrix To Reference Note
nFragments0

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

Run lm on segmented data (from clustering)
makeNRedMatr

Make non-redundant matrix
mergeSelCol

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

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

mergeSelCol3
presenceFilt

Filter lines of matrix for max number of NAs
mergeW2

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

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

Minimum distance/difference between values
normalizeThis

Normalize Data In Various Modes
partUnlist

Partial unlist of lists of lists
pasteC

Advanced paste-collapse
ratioToPpm

Convert ratio to ppm
readCsvBatch

Read batch of csv-files
presenceGrpFilt

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

Trim/Remove Redundant Words
rowSds

sd for each row (fast execution)
rnormW

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

SEM for each row
organizeAsListOfRepl

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

Read Tabular Content Of Files With Variable Number Of Columns
replicateStructure

Search and Select Groups of Replicates
rowGrpSums

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

Per line and per group sd-values
rmDupl2colMatr

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

Protect Special Characters
readTabulatedBatch

Batch Reading Of Tabulated Text-Files
.seqCutStr

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

Set lowest value to given value
randIndFx

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

Non-redundant lines of matrix
regrBy1or2point

Rescaling according to reference data using linear regression.
nonredDataFrame

Filter for unique elements
mergeVectors

Merge Named Vectors
regrMultBy1or2point

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

Reduce table by aggregating smaller groups
readXlsxBatch

Read Batch of Excel xlsx-Files
filterLiColDeList

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

Sort matrix by two categorical and one integer columns
replNAbyLow

Replace NAs by low values
replPlateCV

CV of replicate plates (list of matrixes)
renameColumns

Rename columns
reorgByCluNo

Reorganize matrix according to clustering-output
sortByNRepeated

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

Filter for unique elements
firstOfRepLines

Reduce to first occurance of repeated lines
matr2list

Transform columns of matrix to list of vectors
firstOfRepeated

Find first of repeated elements
pVal2lfdr

Convert p-values to lfdr
ratioAllComb

Calculate all ratios between x and y
packageDownloadStat

Simple Package Download Statistics From CRAN
rankToContigTab

Contingenty tables for fit of ranking
mergeMatrices

Merge Multiple Matrices
rmEnumeratorName

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

Row Normalize
rowMedSds

Estimate sd Of Median For Each Row By Bootstrap
searchDataPairs

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

Search Points Forming Lines At Given Slope
rmOrphans

Remove or Reassign Orphan Indexes
stableMode

Estimate Mode (Most Frequent Value)
standardW

Standardize (scale) data
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)
singleLineAnova

2-factorial Anova on single line of data
rowCVs

rowCVs
rowGrpCV

Row group CV
top3mean

Mean Of 3 Highest Values
test2factLimma

2-Factorial Limma-Style t-Test
stdErrMedBoot

Standard Eror Of Median by Boot-Strap
triCoord

Pairwise x,y combinations
withinRefRange

Check for values within range of reference
trimRedundText

Trim redundant text
sampNoDeMArrayLM

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

Scale data to given minimum and maxiumum
transpGraySca

Make single vector gray-gradient
treatTxtDuplicates

Locate duplicates in text and make non-redundant
sumNAperGroup

Count number of NAs per sub-set of columns
writeCsv

Write (and convert) csv files
unifyEnumerator

Unify Enumerators
summarizeCols

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

System-date (compressed format)
trimmedMean

Trimmed Mean
rowGrpMeans

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

Count number of NAs per row and group of columns
tTestAllVal

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

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

Print matrix-content as plot
upperMaCoord

(upper) pairwise x,y combinations
appendNR

Append vectors or lists, without duplcating common elements
cbindNR

cbind to non-redundant
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
buildTree

Connect edges to from tree and extract all possible branches
arrayCV

CV of array