Learn R Programming

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

wrMisc (version 1.2.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,415

Version

1.2.0

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

April 23rd, 2020

Functions in wrMisc (1.2.0)

checkVectLength

Check length of vector
checkSimValueInSer

Check for similar values in series
completeArrLst

Complete list of arrays for same dimensions
contribToContigPerFrag

Characterize individual contribution of single edges in tree-structures
extrNumericFromMatr

Extract numeric part of matrix or data.frame
closeMatchMatrix

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

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

Connect edges to form tree and extract all possible branches
equLenNumber

Equal character-length number
coinPermTest

Compare means of two vectors by permutation test
colorAccording2

Transform numeric values to color-gradient
combineOverlapInfo

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

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

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

Replace most distant values by NA
countSameStartEnd

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

Flexible extraction of columns
extrSpcText

Extract specific text
checkStrictOrder

Check for strict (ascencing or descending) order
colMedSds

Standard error of median for each column by bootstrap
combineRedBasedOnCol

Combine/reduce redundant lines based on specified column
findCloseMatch

Find close numeric values between two vectors
firstOfRepLines

Reduce to first occurance of repeated lines
makeNRedMatr

Make non-redundant matrix
mergeSelCol3

mergeSelCol3
makeMAList

make MA-List object
nNonNumChar

Count number of non-numeric characters
htmlSpecCharConv

Html special character conversion
mergeSelCol

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

Filter matrix to keep only first of repeated lines
findRepeated

Find repeated elements
combineByEitherFactor

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

Fast na.omit
combineSingleT

Get all combinations with TRUE from each column
correctToUnique

Correct vector to unique
combineReplFromListToMatr

Combine replicates from list to matrix
readVarColumns

Read tabular content of files with variable number of columns
colSds

sd for each column
readXlsxBatch

Read batch of Excel xlsx-files
regrBy1or2point

Rescaling according to reference data using linear regression.
reduceTable

Reduce table by aggregating smaller groups
searchDataPairs

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

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

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

Locate duplicates in text and make non-redundant
searchLinesAtGivenSlope

Search points forming lines at given slope
countCloseToLimits

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

Filter for unique elements
findUsableGroupRange

Select groups within given range
getValuesByUnique

Print matrix-content as plot
get1stOfRepeatedByCol

Get first of repeated by column
diffPPM

difference in ppm between numeric values
findSimilFrom2sets

Find similar numeric values from two vectors/matrixes
convColorToTransp

Assign new transparency to given colors
filtSizeUniq

Filter for unique elements
diffCombin

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

Moderated pair-wise t-test from limma
triCoord

Pairwise x,y combinations
filt3dimArr

Filter a three-dimensional array of numeric data
cutToNgrp

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

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

Extract last two numeric parts from character vector
fusePairs

Fuse pairs to generate cluster-names
convToNum

Convert to numeric
cutAtMultSites

Cut character-vector at multiple sites
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
lmSelClu

Run lm on segmented data (from clustering)
exponNormalize

Normalize by adjusting exponent
exclExtrValues

Exclude extreme values (based on distance to mean)
firstOfRepeated

Find first of repeated elements
lrbind

rbind on lists
fuseAnnotMatr

Fuse annotation matrix to initial matrix
nonAmbiguousMat

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

make numeric vector non-ambiguous (ie unique)
ratioToPpm

Convert ratio to ppm
listBatchReplace

Replacements in list
moderTestXgrp

Multiple moderated pair-wise t-tests from limma
nFragments

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

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

Organize values into list and sort by names
matchNamesWithReverseParts

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

Transform columns of matrix to list of vectors
mergeW2

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

Minimum distance/difference between values
nonRedundLines

Non-redundant lines of matrix
organizeAsListOfRepl

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

Normalize data in various modes
ratioAllComb

Calculate all ratios between x and y
rankToContigTab

Contingenty tables for fit of ranking
partUnlist

Partial unlist of lists of lists
partialDist

Partial distance matrix (focus on closest)
pVal2lfdr

Convert p-values to lfdr
pasteC

Advanced paste-collapse
rmDupl2colMatr

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

Filter for unique elements
renameColumns

Rename columns
regrMultBy1or2point

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

Read batch of csv-files
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)
randIndFx

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

row group CV
rowSEMs

SEM for each row
rowGrpMeans

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

Filter lines of matrix for max number of NAs
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns
replPlateCV

CV of replicate plates (list of matrixes)
stableMode

Estimate mode (most frequent value)
replNAbyLow

Replace NAs by low values
rowSds

sd for each row (fast execution)
test2factLimma

2-factorial limma-style t-test
transpGraySca

Make single vector gray-gradient
tTestAllVal

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

2-factorial Anova on single line of data
tableToPlot

Print matrix-content as plot
uniqCountReport

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

rowCVs
upperMaCoord

(upper) pairwise x,y combinations
withinRefRange

Check for values within range of reference
writeCsv

Write (and convert) csv files
rowGrpSds

Per line and per group sd-values
rowMedSds

sd of median for each row by bootstrap
stdErrMedBoot

Standard eror of median by boot-strap
summarizeCols

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

cbind to non-redundant
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
checkGrpOrder

checkGrpOrder
asSepList

Organize data as separate list-entries
addBeforFileExtension

Add text before file-extension
XYToDiffPpm

Express difference as ppm
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
arrayCV

CV of array