Learn R Programming

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

wrMisc (version 1.9.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). 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.9.0

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

March 25th, 2022

Functions in wrMisc (1.9.0)

buildTree

Connect edges to from tree and extract all possible branches
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
appendNR

Append vectors or lists, without duplcating common elements
cleanReplicates

Replace most distant values by NA
XYToDiffPpm

Express difference as ppm
asSepList

Organize data as separate list-entries
arrayCV

CV of array
addBeforFileExtension

Add text before file-extension
cbindNR

cbind to non-redundant
checkStrictOrder

Check for strict (ascencing or descending) order
colSds

sd for each column
combineReplFromListToMatr

Combine replicates from list to matrix
closeMatchMatrix

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

Complete list of arrays for same dimensions
contribToContigPerFrag

Characterize individual contribution of single edges in tree-structures
colorAccording2

Transform numeric values to color-gradient
combineSingleT

Get all combinations with TRUE from each column
convMatr2df

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

Cut character-vector at multiple sites
checkAvSd

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

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

Exclude extreme values (based on distance to mean)
coordOfFilt

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

Convert vector to numeric
checkGrpOrderSEM

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

Compare means of two vectors by permutation test
exponNormalize

Normalize by adjusting exponent
checkGrpOrder

checkGrpOrder
extr1chan

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

Find similar numeric values from two vectors/matrixes
checkSimValueInSer

Check for similar values in series
colMedSds

Standard error of median for each column by bootstrap
findUsableGroupRange

Select groups within given range
filterLiColDeList

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

Check length of vector
combinatIntTable

Planing for making all multiplicative combinations
get1stOfRepeatedByCol

Get first of repeated by column
combineByEitherFactor

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

Flexible extraction of columns
conv01toColNa

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

Filter for unique elements
fuseCommonListElem

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

Assign new transparency to given colors
cutArrayInCluLike

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

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

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

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

Filter matrix to keep only first of repeated lines
diffPPM

Difference in ppm between numeric values
levIndex

Transform (factor) levels into index
countCloseToLimits

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

Combine/reduce redundant lines based on specified column
extrSpcText

Extract specific text
linModelSelect

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

Print matrix-content as plot
correctWinPath

Correct mixed slash and backslash in file path
extrNumericFromMatr

Extract numeric part of matrix or data.frame
fusePairs

Fuse pairs to generate cluster-names
findCloseMatch

Find close numeric values between two vectors
findRepeated

Find repeated elements
firstOfRepLines

Reduce to first occurance of repeated lines
matchNamesWithReverseParts

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

Transform columns of matrix to list of vectors
makeNRedMatr

Make non-redundant matrix
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.
matchSampToPairw

Match names to concatenated pairs of names
filterList

Filter for unique elements
mergeVectors

Merge Named Vectors
nFragments0

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

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

Convert ulr-name for reading in raw-mode
nNonNumChar

Count number of non-numeric characters
correctToUnique

Correct vector to unique
multiCharReplace

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

Multiple moderated pair-wise t-tests from limma
nonredDataFrame

Filter for unique elements
elimCloseCoord

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

Filter lines of matrix for max number of NAs
htmlSpecCharConv

Html special character conversion
firstOfRepeated

Find first of repeated elements
protectSpecChar

Protect Special Characters
equLenNumber

Equal character-length number
extractLast2numericParts

Extract last two numeric parts from character vector
filt3dimArr

Filter a three-dimensional array of numeric data
makeMAList

Make MA-List object
lrbind

rbind on lists
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
randIndFx

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

Replacements in list
pairsAsPropensMatr

Convert pairs of node-names to non-oriented propensity matrix Numerous network query tools produce a listing of pairs of nodes (with one pair of nodes per line). Using this function such a matrix (or data.frame) can be combined to this more comprehensive view as propensity-matrix. Note, this has been primarily developed for undireted interaction networks, the resulting propensity-matrix does not show any orientation any more. In a number of applications (eg in protein-protein interaction networks, PPI) the resulting matrix may be rather sparse.
normalizeThis

Normalize data in various modes
fuseAnnotMatr

Fuse annotation matrix to initial matrix
listGroupsByNames

Organize values into list and sort by names
minDiff

Minimum distance/difference between values
moderTest2grp

Moderated pair-wise t-test from limma
rmDupl2colMatr

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

Partial unlist of lists of lists
rankToContigTab

Contingenty tables for fit of ranking
lmSelClu

Run lm on segmented data (from clustering)
multiMatch

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

Read batch of csv-files
naOmit

Fast na.omit
regrMultBy1or2point

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

mergeSelCol

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

Count number of NAs per sub-set of columns
rowSEMs

SEM for each row
rnormW

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

sd for each row (fast execution)
summarizeCols

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

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

Print matrix-content as plot
scaleXY

Scale data to given minimum and maxiumum
renameColumns

Rename columns
sampNoDeMArrayLM

Locate sample index from index or name of pair-wise comparisons in list or MArrayLM-object
readVarColumns

Read tabular content of files with variable number of columns
sysDate

System-date (compressed format)
readXlsxBatch

Read batch of Excel xlsx-files
nFragments

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

Transform matrix to non-ambiguous matrix (in respect to given column)
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
test2factLimma

2-factorial limma-style t-test
uniqCountReport

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

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

(upper) pairwise x,y combinations
pasteC

Advanced paste-collapse
partialDist

Partial distance matrix (focus on closest)
mergeSelCol3

mergeSelCol3
replicateStructure

Search and Select Groups of Replicates
regrBy1or2point

Rescaling according to reference data using linear regression.
replPlateCV

CV of replicate plates (list of matrixes)
reduceTable

Reduce table by aggregating smaller groups
rowGrpMeans

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

Make single vector gray-gradient
organizeAsListOfRepl

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

make numeric vector non-ambiguous (ie unique)
nonRedundLines

Non-redundant lines of matrix
reorgByCluNo

Reorganize matrix according to clustering-output
rowGrpNA

Count number of NAs per row and group of columns
pVal2lfdr

Convert p-values to lfdr
ratioAllComb

Calculate all ratios between x and y
packageDownloadStat

Simple Package Download Statistics from CRAN
ratioToPpm

Convert ratio to ppm
treatTxtDuplicates

Locate duplicates in text and make non-redundant
rowGrpSds

Per line and per group sd-values
rowCVs

rowCVs
rowGrpCV

row group CV
replNAbyLow

Replace NAs by low values
searchDataPairs

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

Search points forming lines at given slope
rowMedSds

sd of median for each row by bootstrap
standardW

Standardize (scale) data
withinRefRange

Check for values within range of reference
stdErrMedBoot

Standard eror of median by boot-strap
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns
triCoord

Pairwise x,y combinations
stableMode

Estimate mode (most frequent value)
writeCsv

Write (and convert) csv files
trimRedundText

Trim redundant text