Man pages for barzine/barzinePhdR
Code developed while and for my PhD thesis at the EMBL-EBI

add.qual.attAdd a (named) column to a data.frame, filled with the same...
barplotCommonGenesUnique2DPlot the genes in common between 2 datasets
barplotCommonGenesUnique3DPlot the genes in common between 3 datasets
bibarplotsDiversityCondFor easier comparison, plot the uniquely expressed genes...
blueredGenerate blue-to-red colorscale
boolDF2numericConvert a logical data.frame to a numeric data.frame (TRUE ->...
cat.htmlEncapsulate result between <pre></pre> html tags
change.localIDChange the name of the samples based on preset annotation...
checkConformityCheck that both datasets share identical dimensions
clean.HTScRemove rows from data.frame (created by older version of...
clean.infiniteReplace one value by another and remove all NA rows
cleanNamesTake a character string with parenthensis as a pattern and...
cleanReadAnnotAllows to load an annotation data.frame
cleantableWrapper around knitr::kable with HTML as a default
colCbcWrapper around colorRampalette with two prechosen colours.
colMaxGives the maximum value of each column
colMinGives the minimum value of each column
colorpanelGenerate a smoothly varying set of colors
colSelectSelection on a data.frame to keep or filter out specified...
colSelect2Selection on a data.frame to keep the specified columns only
comp_cor_log2Compute the correlation between two studies after their...
complement2nbGenesPerCond.uniqueFacetted plot (e.g. per study) of the distribution of genes...
completeDF.t_test.CorrMat_identical.vs.differentApply t.test.CorrMat_identical.vs.different and complete the...
comp_ratio_sdCalculate the ratio of standard deviation between two...
computeBreadthCompute breadth of expression of the genes across a...
compute_gene_corCompute for the genes the correlation of their expression...
compute_gene_cor_saveAllows to save to a file the correlation of the genes...
compute_permuted_corShuffle randomly one expression dataset before computing the...
compute_permuted_corQOptimised to work with clustermq (to be used for LSF jobs)...
compute_tissue_corr_matrixCompute the correlation between two matrices variables(...
createDFhXgAllow to select one tissue only from a data.frame
createGoAnnotRetrieve GO information for a list of genes or all genes
createTableResults_basicsFormat results output for two-dataframe meta-analysis
creationDf.gxaWrapper around read.table with a few tweaks
cross.selectKeep only the columns or rows or both that are common between...
cross.selectCondSelection of the same conditions (columns) between two...
cross.sharedDistribCompute and compare the breath of expression of two studies...
cross.sharedDistrib_firstLastDraw the figures of the shared expression for the two...
crudeStripStrip rows which don't have any value above the given...
Cumulative_speRank the genes based on their decreasing order of correlation...
cumulSpeAllows to plot the amount of TS genes among the genes that...
cumulSpeSimulAggregatedPlot the course of TS proteins when the level of genes...
cutoffTest cell values in a data.frame for equality or higher value...
dataset.HTScCreate a data.frame from a folder of htseq outputs
dataset_irapCreate a data.frame for a transcriptomic study from the...
dataset.randomizeRandomise the content of each column of a data.frame
datatable.customCreate a customised HTML table widget based on the DT library
density_plotWrapper around gpplot2's density plot with preset arguments
df.cutoffCreate a data.frame for which the values under a given...
df.cutoff2Create a data.frame for which the values under a given...
df.fillCreate a data.frame with new rows or columns for the inputed...
df.StripFilter the content of a numeric data.frame based on a...
df.StripLineCompare cell values to a threshold and fill cells that failed...
drawOverlapHeatmapsDraw the heatmap based on the output of matrix overlap_res
DrawVennFunction based on the VennDiagram package with some...
ebiRankRank expression of the genes within each tissue.
enhancedTissueGive the list of the genes whose expression is enhanced for a...
enrichedTissueGive the list of the genes whose expression is enriched for a...
evolCorrCumulPlot the correlation of the gene expression between the same...
evolCvCorrCumulPlot the correlation of the gene expression while taking in...
excludeGenesExclude the genes (rows) from a data.frame based on a given...
excludeRowsCreate a data.frame for which specific rows have been...
ExpressedGeneInTissueReturns the id (rownames) of the genes that are found in the...
extractDendroFromPlotTDExtract the dendrogram from the heatmap based on...
extractDendroTissueDistanceCreate a dendrogram from a tissueDistance data.frame
extract.HTScAllows to format older version of irap's output
extract.irapImport data from files produced by an older version of irap.
extractSpeExtract the genes that are specific to a tissue
extractWithinSampleAbundanceExtract columns that contains "WithInSampleAbundance." in...
extractWithinSampleTop3AbundanceExtract columns that contains "WithInSampleTop3Abundance." in...
extractWithTagAllows to create a function that extracts the columns that...
factorDF2stringConvert all the content of a given data.frame to characters
factoringFrom a list of filenames, return a list of data.frames after...
factoring.rbindFrom a list of data.frame, add an attribute and collate (row...
filtre.datasetKeep only the specified rows of a dataframe
fixNamesGtexHomogenise the names of the GTEx data with the other datasets...
fixNamesUhlenHomogenise the names of the Uhlen et al. data with the other...
gen.add.qual.attCreate a function that allows to add a qualitative attribute...
geneClassifyClassify the genes in function of their expression. Inspired...
geneClassify.QClassify the genes in function of their expression to be used...
geneScattersScatter plot for the expression of a gene for two datasets...
getEpsilonDisplays the value of epsilon
gg_color_hueCreate a palette with ggplot2 default colors
g_legendExtract the legend from a ggplot
go2genesTakes a list of GO ids and queries all the genes related to...
grapes-greater-than-equals-grapesTest more carefully if x is equal or greater than y
grapes-less-than-equals-grapesTest more carefully if x is equal or lesser than y
greenredGenerate green-to-red colorscale
hampel.testApply an Hampel's test on a data.frame
heatmap.2Enhanced Heat Map (from gplots)
heatmapAlpabetDraw a customised heatmap where the different variables are...
heatmapAlphabetDraw a customised heatmap where the different variables are...
heatmapWithClusteringDraw a customised heatmap with marked clusters in the margins...
initialisebarzinePhdR
internalJaccardIndMatrixCreate matrix of jaccard indices based on the output of...
IntersectAllow to intersect more than two sets at a time
jaccardIndCompute Jaccard index
lg.formatFormat a data.frame in long format and annotate columns
ListSave the output of "[<-.result" function
listFromFileCreate a vector from a file where the data is formatted as a...
listFromFileBiomartCreate a vector from a file downloaded from Biomart where the...
listgenesRetrieve all the genes ID from a file
ListOfExpressedGenesGive the list of expressed genes in a study in function of...
LoadLoad function that returns the object(s) instead of attaching...
load_and_check_3DFLoad three data.frames from file paths and check that they...
log2.naThe correct answer -Inf for log2(0) is changed to NA
make.2ldfCreate a data.frame from the elements of two vectors that...
make.3ldfCreate a data.frame from the elements of three vectors that...
matchColCondAllows to display the correct colour annotation
matrix.overlap_resCalculate the overlap of specific genes (uniquely expressed...
maxCond.dfGive the maximum value observed for each gene across all...
merge_biol_repMerge the biological replicates in a data.frame together
merge_replicatesMerge the replicates of a data.frame together
merge_tech_repMerge the techincal replicates in a data.frame together
mHeatmapWrapper around heatmap.2; allows to annotate with the colours...
mHeatmapTCWrapper around heatmap.2; allows to annotate with the colours...
mixed.highProvide the list of mixed high genes
mixed.high2Provide the list of genes that have a high expression when...
mixed.lowProvide the list of mixed low genes
mixed.low2Provide the list of genes that have a low expression when...
mkMatrixTake two data.frames to create one and can log2 the content...
multi.add.qual.attCreate a dataframe filled with a value with the same number...
multibarplotsDiversityCondFor easier comparison, plot the uniquely expressed genes...
nameIDRetrieve gene symbols (hgnc) for Ensembl gene IDs with...
NAto0Convert all missing values to 0
nbGenesPerCondPresent the number of genes that are expressed in each tissue
nbGenesPerCond.uniquePlot the distribution of genes across the columns. Genes...
nl1dCreates a two-column data.frame from a named vector where the...
noMoreFactorChange all factor columns in a data.frame into character...
overlapProtTrans.SpecificCompute test of significance and draw venn diagram of the...
overlapSortCumul2DFGive the number of the common genes between two datasets at...
overlapSortCumul5DFGive the number of the common genes between five datasets at...
overlapSpeProtmRNAOverlap of the tissue-specific proteins with the most...
plot_distribDFPlot the distribution for the columns of a data.frame...
plotGOHeatmapCreate a heatmap from a compareClusterResult...
plotTissuesDistancePlot heatmap based on the result of tissueDistance
plotUniq.distribMore customisable plot based on computeBreadth
plot_xsharedDistribPlot the expression breadth distribution computed with...
prefixPrefix the names of the columns of a data.frame with a tag
prefixvPrefix character vector with a given tag
presentDataWrapper that briefly present the datasets
printDebugFor debugging purposes Screen or report output Look for a...
protSpeGive the list of rows for which the values are only once...
qLoadLoad in the working environment the object matching the name...
rank.AtlasRank for each tissue (column) the genes (rows) based on their...
rankSpeRank gene expression based on their specificity to each...
ratioSpeCompute the tissue specificity of the genes to each tissue as...
ratioSpe.1Give the gene specificity in each tissue as a ratio to its...
read.listRead a file (one or two columns) and creates a vector (named...
Read.tableBasically a read.table but with predetermnined parameters
redblueGenerate red-to-blue colorscale
redgreenGenerate red-to-green colorscale
refGraphDFCreate a data.frame from the two data.frames after filtering...
relative.GXenrichementAnnotate the genes that the expression is enriched of...
relative.GXenrichement2Another function that annotate the genes that the expression...
relnum.GXenrichementAnother function that annotates the genes that the expression...
removeClustersRemove the proteins that are part of a cluster
replotCumulSpeSimulAggregatedPlot a figure based on the data.frame created by the...
revCustomReverse a data.frame (or matrix) and change '-Inf' in 'NA' or...
revCustomMatrixDistReverse a symetric data.frame (or matrix). Specifically...
rowCVCovariance applied to a data.frame rows
RowMadMedian absolute deviation applied to a data.frame rows
rowMaxGives the maximum value of each row
RowMeansArithmetical mean applied to a data.frame rows
RowMediansArithmetical median applied to a data.frame rows
rowMinGives the minimum value of each row
RowModeMode applied to a data.frame rows
rowSDStandard deviation applied to a data.frame rows
rowVarVariance applied to a data.frame rows
rpkm2tpmConvert R/FPKM to TPM
save_dfAllow to save a data.frame quicly.
saveToFileTakes an object and saves it in a file with the same name....
saveWithNameAllows changing the name of the object at the same time that...
scatplotScatter plot of two columns of a data.frame after possible...
scatplot.log2Scatter plot of two columns of a data.frame after log2...
selectSpecificSelect specifically the genes that are expressed above a...
setDebugAllow to change the value of debug
setEpsilonAllows to change the value of epsilon (needed to circumvent...
sharedBreadthPlot the breadth of a first study compared to a second one.
signifDFRound numbers to the specified number of significant digits...
simpleCapCapitalise the first character of a string
simpleCap2Capitalise the first character of a string
single.factoringFrom a file outputted by an older version of irap, create a...
single.factoring2From a filename, extract a data.frame to which a number of...
sortedGenesCorrPlot the correlation of different studies comparison that are...
sortUhlenClassInOneCreate one data.frame with the most relevant information for...
stampedAttach the current time to a string name
stat.modeStatistical mode value
stripStrip the rows of a data.frame that are failling the test.
subset-.resultAllows to output a list directly in several objects (python...
substrRightExtract the last n character(s) from a string
suffixTag each column name of a data.frame with a given string of...
tableGeneIDdescRetrieve additional gene information from biomaRt
test_CorrMat_identical_differentCreate the data.frame and can also test and plot the...
theme_cbwTheme black and white with centered title
theme_legacyTheme Legacy theme grey
theme_minimalisteTheme minimaliste: customised theme for ggplot2
tissuesDistanceCompute the distance between the tissues within a study.
topCommonGenesGives the number or the refenrences of shared genes by both...
topgenes.corClusterCompute the correlation matrix for the correlation of the two...
topgenes.corClusterDrawDraw (after computation) the correlation matrix for the...
topgenes.corClusterDraw_logDraw (after computation) the correlation matrix for the...
topgenes.corCluster_logCompute the correlation matrix for the correlation of the two...
trimSpaceRemove empty spaces in strings
t_test.CorrMat_identical.vs.differentTest with a Welch t-test between the group of similar tissues...
t_test.Mat_identical.vs.differentTest with a Welch t-test between the group of similar tissues...
ubi.highGive the genes (rows) that are ubiquitously highly expressed...
ubi.lowGive the genes (rows) that are ubiquitously lowly expressed...
ubi.strictGive the names of all the genes (rows) that are strictly...
undetectedList all the genes (rows) for which no expression was...
UnionAllow to intersect more than two sets at a time
unmatchedRowsAbyBRows that are unmatched in one dataset by any row in another...
unmatchedRowsAbyBCRows that are unmatched in one dataset by any row in two...
usablePathCheck if path is available for write
vennPlot_speCompare the content of the two first columns of a data.frame...
wrap.compute_permuted_corQ_saveWrapper to run the random shuffling of the gene correlation...
wrap.scatplot.log2Wrapper automating the creation of scatter plots...
wtDFwrite.table applied to DF plus some general customisation
xsharedDistribCompute and compare the breadth of expression of two datasets...
barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.