Learn R Programming

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

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

Version

1.9.1

License

GPL-3

Maintainer

Wolfgang Raffelsberger

Last Published

April 13th, 2022

Functions in wrMisc (1.9.1)

arrayCV

CV of array
checkAvSd

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

Add text before file-extension
buildTree

Connect edges to from tree and extract all possible branches
XYToDiffPpm

Express difference as ppm
adjBy2ptReg

Linear rescaling of numeric vertor or matrix
appendNR

Append vectors or lists, without duplcating common elements
asSepList

Organize data as separate list-entries
cbindNR

cbind to non-redundant
checkGrpOrder

checkGrpOrder
colSds

sd for each column
cleanReplicates

Replace most distant values by NA
combineReplFromListToMatr

Combine replicates from list to matrix
combineSingleT

Get all combinations with TRUE from each column
colorAccording2

Transform numeric values to color-gradient
correctToUnique

Correct vector to unique
colMedSds

Standard error of median for each column by bootstrap
combineOverlapInfo

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

Compare means of two vectors by permutation test
coordOfFilt

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

Combine/reduce redundant lines based on specified column
checkStrictOrder

Check for strict (ascencing or descending) order
combinatIntTable

Planing for making all multiplicative combinations
checkVectLength

Check length of vector
extr1chan

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

Extract last two numeric parts from character vector
filt3dimArr

Filter a three-dimensional array of numeric data
extrColsDeX

Flexible extraction of columns
countSameStartEnd

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

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

Equal character-length number
combineByEitherFactor

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

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

Select groups within given range
findSimilFrom2sets

Find similar numeric values from two vectors/matrixes
closeMatchMatrix

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

Assign new transparency to given colors
conv01toColNa

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

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

Filter for unique elements
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.
diffPPM

Difference in ppm between numeric values
firstOfRepeated

Find first of repeated elements
fuseAnnotMatr

Fuse annotation matrix to initial matrix
linModelSelect

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

Minimum distance/difference between values
linRegrParamAndPVal

Fit linear regression, return parameters and p-values
mergeW2

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

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

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

Check for similar values in series
getValuesByUnique

Print matrix-content as plot
moderTest2grp

Moderated pair-wise t-test from limma
get1stOfRepeatedByCol

Get first of repeated by column
lrbind

rbind on lists
lmSelClu

Run lm on segmented data (from clustering)
matr2list

Transform columns of matrix to list of vectors
mergeSelCol

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

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

Convert vector to numeric
cutAtMultSites

Cut character-vector at multiple sites
cutToNgrp

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

Filter matrix to keep only first of repeated lines
makeNRedMatr

Make non-redundant matrix
firstOfRepLines

Reduce to first occurance of repeated lines
makeMAList

Make MA-List object
contribToContigPerFrag

Characterize individual contribution of single edges in tree-structures
completeArrLst

Complete list of arrays for same dimensions
nFragments0

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

Convert p-values to lfdr
organizeAsListOfRepl

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

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

Match names to concatenated pairs of names
readXlsxBatch

Read Batch of Excel xlsx-Files
countCloseToLimits

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

Exclude extreme values (based on distance to mean)
correctWinPath

Correct mixed slash and backslash in file path
extrNumericFromMatr

Extract numeric part of matrix or data.frame
reduceTable

Reduce table by aggregating smaller groups
pasteC

Advanced paste-collapse
nNonNumChar

Count number of non-numeric characters
naOmit

Fast na.omit
extrSpcText

Extract specific text
filtSizeUniq

Filter for unique elements
moderTestXgrp

Multiple moderated pair-wise t-tests from limma
rnormW

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

Filter lines of matrix for max number of NAs
nonRedundLines

Non-redundant lines of matrix
readCsvBatch

Read batch of csv-files
ratioToPpm

Convert ratio to ppm
rowCVs

rowCVs
renameColumns

Rename columns
reorgByCluNo

Reorganize matrix according to clustering-output
filterLiColDeList

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

Partial unlist of lists of lists
nonredDataFrame

Filter for unique elements
exponNormalize

Normalize by adjusting exponent
searchDataPairs

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

Scale data to given minimum and maxiumum
findCloseMatch

Find close numeric values between two vectors
sampNoDeMArrayLM

Locate Sample Index From Index or Name Of Pair-Wise Comparisons in list or MArrayLM-Object
rowSds

sd for each row (fast execution)
fuseCommonListElem

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

Find repeated elements
htmlSpecCharConv

Html special character conversion
listBatchReplace

Replacements in list
gitDataUrl

Convert ulr-name for reading in raw-mode
listGroupsByNames

Organize values into list and sort by names
sumNAperGroup

Count number of NAs per sub-set of columns
stdErrMedBoot

Standard eror of median by boot-strap
stableMode

Estimate mode (most frequent value)
partialDist

Partial distance matrix (focus on closest)
nonAmbiguousMat

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

make numeric vector non-ambiguous (ie unique)
fusePairs

Fuse pairs to generate cluster-names
treatTxtDuplicates

Locate duplicates in text and make non-redundant
levIndex

Transform (factor) levels into index
keepCommonText

Extract Longest Common Text Out Of Character Vector
standardW

Standardize (scale) data
normalizeThis

Normalize data in various modes
numPairDeColNames

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

Pairwise x,y combinations
replPlateCV

CV of replicate plates (list of matrixes)
replNAbyLow

Replace NAs by low values
pairsAsPropensMatr

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

Simple Package Download Statistics from CRAN
ratioAllComb

Calculate all ratios between x and y
rankToContigTab

Contingenty tables for fit of ranking
tTestAllVal

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

mergeSelCol3
tableToPlot

Print matrix-content as plot
readVarColumns

Read tabular content of files with variable number of columns
readTabulatedBatch

Batch reading of Tabulated Text-Files
regrBy1or2point

Rescaling according to reference data using linear regression.
rowMedSds

sd of median for each row by bootstrap
regrMultBy1or2point

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

SEM for each row
mergeVectors

Merge Named Vectors
rowGrpMeans

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

row group CV
sysDate

System-date (compressed format)
summarizeCols

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

(upper) pairwise x,y combinations
test2factLimma

2-factorial limma-style t-test
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)
trimRedundText

Trim redundant text
searchLinesAtGivenSlope

Search points forming lines at given slope
withinRefRange

Check for values within range of reference
uniqCountReport

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

Write (and convert) csv files
multiMatch

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

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

Make single vector gray-gradient
protectSpecChar

Protect Special Characters
randIndFx

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

Search and Select Groups of Replicates
rmDupl2colMatr

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

Count number of NAs per row and group of columns
rowGrpSds

Per line and per group sd-values
singleLineAnova

2-factorial Anova on single line of data
sortBy2CategorAnd1IntCol

Sort matrix by two categorical and one integer columns