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

https://forge.inrae.fr/scales/treediff.git
23 July 2025, 17:13:49 UTC
  • Code
  • Branches (4)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    • refs/tags/0.2.1
    • refs/tags/v0.1
    • refs/tags/v0.2
    • f060379f1ef7604e07a6354568d372fe3ccef64b
    No releases to show
  • c7205de
  • /
  • man
  • /
  • HiCDOCDataSet.Rd
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

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
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:e7b524e676428eb571ee56d3460276cf9ca78cb2
origin badgedirectory badge
swh:1:dir:93379ae2ac7d7f36f88572656dbc524f3a1a2053
origin badgerevision badge
swh:1:rev:f060379f1ef7604e07a6354568d372fe3ccef64b
origin badgesnapshot badge
swh:1:snp:c36295817c399bf58e154ba758a9746fb381d408

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
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: f060379f1ef7604e07a6354568d372fe3ccef64b authored by Nathalie Vialaneix on 20 February 2024, 16:16:21 UTC
Merge branch 'dev' into 'main'
Tip revision: f060379
HiCDOCDataSet.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HiC2Tree.R
\name{HiCDOCDataSet}
\alias{HiCDOCDataSet}
\title{Create a HiCDOCDataSet object from a set of files}
\usage{
HiCDOCDataSet(files, format, binsize = NULL, chromosomes, index = NULL)
}
\arguments{
\item{files}{A character vector of file paths.}

\item{format}{A character vector of file formats corresponding to the files
in \code{file}. Supported formats are "tabular", "cooler", "juicer", and
  "HiC-Pro".}

\item{binsize}{An integer representing the bin size to use for cooler and
juicer formats. Ignored for tabular and HiC-Pro formats.}

\item{chromosomes}{A character vector specifying the chromosomes to include
in the output.}

\item{index}{A character vector of file paths to the index files required for
HiC-Pro format. Ignored for other formats.}
}
\value{
A list containing the following objects:
\describe{
  \item{HiCDOCDataSet}{A list of interaction matrices of the HiCDOCDataSet
  class of the HiCDOC package, one for each file}
  \item{indexData}{A data frame of index data for each interaction in the
  matrices.}
  \item{index_mat_chr}{A data frame containing the name of the matrices and
  the corresponding chromosome.}
}
}
\description{
This function creates a count matrix from a set of files
in different formats, such as tabular, cooler, juicer or HiC-Pro. It returns
a list of interaction matrices.
}
\examples{
\dontrun{
replicates <- 1:2
cond <- "90"
all_begins <- interaction(expand.grid(replicates, cond), sep = "-")
all_begins <- as.character(all_begins)

nb_chr <- 2
chromosomes <- 1:nb_chr
all_mat_chr <- lapply(chromosomes, function(chr) {
  all_mat <- lapply(all_begins, function(ab) {
    mat_file <- paste0("Rep", ab, "-chr", chr, "_200000.bed")
  })
  all_mat <- unlist(all_mat)
})
index <- system.file("extdata", "index.200000.longest18chr.abs.bed",
                     package = "treediff")
format <- rep("HiC-Pro", length(replicates) * length(cond) * nb_chr)
binsize <- 200000
files <- system.file("extdata", unlist(all_mat_chr), package = "treediff")
HiCDOCDataSet(files, format, binsize, chromosomes, index)
}

}

back to top

Software Heritage — Copyright (C) 2015–2026, 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