data-raw/create_testdata_for_AnnotateIDVCFsWithTransRanges.R

# Source this file from ICAMSxtra top level directory.

cat(getwd(), "\n")

list.of.ID.vcfs1 <- 
  ICAMS::ReadAndSplitVCFs("tests/testthat/testdata/Strelka-ID-GRCh37/Strelka.ID.GRCh37.vcf",
                          variant.caller = "strelka")$ID
annotated.strelka.ID.vcf.GRCh37 <- 
  AnnotateIDVCFsWithTransRanges(list.of.ID.vcfs1, ref.genome = "GRCh37", 
                                ICAMS::trans.ranges.GRCh37, vcf.names = "test.vcf")[[1]]

list.of.ID.vcfs2 <- 
  ICAMS::ReadAndSplitVCFs("tests/testthat/testdata/Strelka.ID.GRCh38.vcf",
                          variant.caller = "strelka")$ID
annotated.strelka.ID.vcf.GRCh38 <- 
  AnnotateIDVCFsWithTransRanges(list.of.ID.vcfs2, ref.genome = "GRCh38", 
                                ICAMS::trans.ranges.GRCh38, vcf.names = "test.vcf")[[1]]

save(annotated.strelka.ID.vcf.GRCh37, annotated.strelka.ID.vcf.GRCh38,
    file = "tests/testthat/testdata/test_AnnotateIDVCFsWithTransRanges.Rdata")
steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.