Package: swissknife 0.41

Michael Stadler

swissknife: Handy code shared in the FMI CompBio group

A collection of useful R functions performing various tasks that might be re-usable and worth sharing.

Authors:Michael Stadler [aut, cre], Charlotte Soneson [aut], Panagiotis Papasaikas [aut], Dania Machlab [aut], Fiona Ross [aut], Friedrich Miescher Institute for Biomedical Research [cph]

swissknife_0.41.tar.gz
swissknife_0.41.zip(r-4.5)swissknife_0.41.zip(r-4.4)swissknife_0.41.zip(r-4.3)
swissknife_0.41.tgz(r-4.4-arm64)swissknife_0.41.tgz(r-4.4-x86_64)swissknife_0.41.tgz(r-4.3-arm64)swissknife_0.41.tgz(r-4.3-x86_64)
swissknife_0.41.tar.gz(r-4.5-noble)swissknife_0.41.tar.gz(r-4.4-noble)
swissknife_0.41.tgz(r-4.4-emscripten)swissknife_0.41.tgz(r-4.3-emscripten)
swissknife.pdf |swissknife.html
swissknife/json (API)
NEWS

# Install 'swissknife' in R:
install.packages('swissknife', repos = c('https://fmicompbio.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/fmicompbio/swissknife/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

24 exports 8 stars 1.45 score 72 dependencies

Last updated 2 months agofrom:bbfe1f9020

Exports:addUtilsFunctionsannotateRegionscalcAndCountDistcalcPhasogramcol2hexestimateNRLgetGenomicTilesgetInsertSizeDistFromBamgetMappableRegionslabelCellsloadExampleDatanormGenesetExpressionparsePkgVersionsplotBitScatterplotGeneRegionplotPhasogramplotSelVarGenesprepareGTFreadSampleTsvssampleControlElementsselVarGenesspecificityScorevalueToColorweightedMeanByID

Dependencies:abindaskpassBHBiobaseBiocGenericsBiocParallelclicliprcodetoolscpp11crayoncredentialscurlDelayedArraydescdplyrfansiformatRfsfutile.loggerfutile.optionsgenericsGenomeInfoDbGenomeInfoDbDataGenomicRangesgertghgitcredsgluehttrhttr2iniIRangesjsonliteKernSmoothlambda.rlatticelifecyclemagrittrMatrixMatrixGenericsmatrixStatsmimeopensslpillarpkgconfigpngpurrrR6rappdirsRcpprlangrprojrootrstudioapiS4ArraysS4VectorssnowSparseArraySummarizedExperimentsystibbletidyselectUCSC.utilsusethisutf8vctrswhiskerwithrXVectoryamlzipzlibbioc

Readme and manuals

Help Manual

Help pageTopics
swissknife - handy code shared in the FMI CompBio groupswissknife-package swissknife
Copy utility functions to packageaddUtilsFunctions
Annotate regions.annotateRegions
Count frequency of differences between values in integer vectors.calcAndCountDist
Calculate phasograms (same strand alignment distances).calcPhasogram
Get hex colorcol2hex
Estimate the nucleosome repeat length (NRL) from a phasogram.estimateNRL
Get regions tiling a genome.getGenomicTiles
Tabulate insert sizes from paired-end alignments in bam files.getInsertSizeDistFromBam
Get mappable regions of a genome.getMappableRegions
Assign labels to cells using known marker geneslabelCells
Access example dataloadExampleData
Calculate normalized expression of a gene setnormGenesetExpression
Parse R and R package versions from session informationsparsePkgVersions
Create a bitmap-rendered plot.plotBitScatter
Plot gene regionplotGeneRegion
Plot annotated phasogram.plotPhasogram
Plot Selected Variable GenesplotSelVarGenes
Prepare GTF file for use with plotGeneRegionprepareGTF
Read sample tsv files from seqdata storagereadSampleTsvs
Sample control elements that match a target distribution.sampleControlElements
Select Variable Genes in Single Cell RNA-seqselVarGenes
Calculate gene-expression specificity scores.specificityScore specificityScore,matrix-method specificityScore,SummarizedExperiment-method
Map numerical values to colors.valueToColor
Aggregate different rows assigned to the same ID by calculating a weighted meanweightedMeanByID