Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge Iframe embedding
swh:1:cnt:7a4557f8536b69c11e27553668e904bb35fd0426

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
#!/usr/bin/env Rscript

#
# Copyright © 2017 Charles E. Vejnar
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file or at https://opensource.org/licenses/MIT.
#

library('DESeq2')

args = commandArgs(trailingOnly = TRUE)
path_count = args[1]
path_condition = args[2]
path_output = args[3]
p_adjust = args[4]

if (length(args) == 5) {
    path_factor = args[5]
}

# Input
countdata = read.csv(path_count, header=TRUE, row.names=1, check.names=FALSE)
coldata = read.csv(path_condition, header=TRUE, row.names=1, check.names=FALSE)
condition = coldata[,1]
if (length(args) == 5) {
    sfactor = read.csv(path_factor, header=TRUE)
}

# Import
dds = DESeqDataSetFromMatrix(countData=countdata, colData=coldata, design=~condition)

if (length(args) == 5) {
    sizeFactors(dds) = as.numeric(as.matrix(sfactor[2,]))
}

# DESeq
dds <- DESeq(dds)

# Get differential expression results
res = results(dds, pAdjustMethod=p_adjust, independentFiltering=FALSE)

# Merge with normalized count data & Write
resdata = merge(as.data.frame(res), as.data.frame(counts(dds, normalized=TRUE)), by="row.names", sort=FALSE)
write.csv(resdata, file=path_output, row.names=FALSE)

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API