getSexFromCoverage | R Documentation |
This function determines the sex of a sample by the coverage ratio of chrX and chrY. Loss of chromosome Y (LOY) can result in a wrong female call. For small targeted panels, this will only work when sufficient sex marker genes such as AMELY are covered. For optimal results, parameters might need to be tuned for the assay.
getSexFromCoverage(
coverage.file,
min.ratio = 25,
min.ratio.na = 20,
remove.outliers = TRUE
)
coverage.file |
Coverage file or data read with
|
min.ratio |
Min chrX/chrY coverage ratio to call sample as female. |
min.ratio.na |
Min chrX/chrY coverage ratio to call sample as
|
remove.outliers |
Removes coverage outliers before calculating mean chromosome coverages. |
Returns a character(1)
with M
for male, F
for
female, or NA
if unknown.
Markus Riester
getSexFromVcf
tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
package = "PureCN")
sex <- getSexFromCoverage(tumor.coverage.file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.