File: filt_minsize.Rd

package info (click to toggle)
r-bioc-decoupler 2.12.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,612 kB
  • sloc: makefile: 5
file content (28 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/decoupleR-pre.R
\name{filt_minsize}
\alias{filt_minsize}
\title{Filter sources with minsize targets}
\usage{
filt_minsize(mat_f_names, network, minsize = 5)
}
\arguments{
\item{mat_f_names}{Feature names of mat.}

\item{network}{Tibble or dataframe with edges and it's associated metadata.}

\item{minsize}{Integer indicating the minimum number of targets per source.}
}
\value{
Filtered network.
}
\description{
Filter sources of a net with less than minsize targets
}
\examples{
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
net <- rename_net(net, source, target, mor)
filt_minsize(rownames(mat), net, minsize = 4)
}