diff --git a/articles/a01_overview.html b/articles/a01_overview.html index 31eecb6e..04fbee96 100644 --- a/articles/a01_overview.html +++ b/articles/a01_overview.html @@ -188,12 +188,12 @@

The gen_tibble loci=example_loci, backingfile = tempfile()) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/file1fe22d3155fa.gt -#> using bigSNP file: /tmp/RtmpCN89XW/file1fe22d3155fa.rds -#> with backing file: /tmp/RtmpCN89XW/file1fe22d3155fa.bk +#> gen_tibble saved to /tmp/RtmpYea289/file20212c4ee04.gt +#> using bigSNP file: /tmp/RtmpYea289/file20212c4ee04.rds +#> with backing file: /tmp/RtmpYea289/file20212c4ee04.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/file1fe22d3155fa.gt') +#> gt_load('/tmp/RtmpYea289/file20212c4ee04.gt')

We are provided information on where the three files underlying the genotype information are stored. As we don’t want to keep the files, we used the tmp directory; normally you will want to use your working @@ -535,16 +535,15 @@

Saving and reading data
 gt_file_name <- gt_save(example_gt)
 #> 
-#> gen_tibble saved to /tmp/RtmpCN89XW/file1fe22d3155fa.gt
-#> using bigSNP file: /tmp/RtmpCN89XW/file1fe22d3155fa.rds
-#> with backing file: /tmp/RtmpCN89XW/file1fe22d3155fa.bk
+#> gen_tibble saved to /tmp/RtmpYea289/file20212c4ee04.gt
+#> using bigSNP file: /tmp/RtmpYea289/file20212c4ee04.rds
+#> with backing file: /tmp/RtmpYea289/file20212c4ee04.bk
 #> make sure that you do NOT delete those files!
 #> to reload the gen_tibble in another session, use:
-#> gt_load('/tmp/RtmpCN89XW/file1fe22d3155fa.gt')
+#> gt_load('/tmp/RtmpYea289/file20212c4ee04.gt')
 gt_file_name
-#> [1] "/tmp/RtmpCN89XW/file1fe22d3155fa.gt" 
-#> [2] "/tmp/RtmpCN89XW/file1fe22d3155fa.rds"
-#> [3] "/tmp/RtmpCN89XW/file1fe22d3155fa.bk"
+#> [1] "/tmp/RtmpYea289/file20212c4ee04.gt" "/tmp/RtmpYea289/file20212c4ee04.rds" +#> [3] "/tmp/RtmpYea289/file20212c4ee04.bk"

In a later session, we could reload the data with:

 new_example_gt <- gt_load(gt_file_name[1])
@@ -568,12 +567,12 @@ 

Saving and reading databed_path_pop_a <- system.file("extdata/pop_a.bed", package = "tidypopgen") pop_a_gt <- gen_tibble(bed_path_pop_a, backingfile = tempfile("pop_a_")) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/pop_a_1fe2676886c2.gt -#> using bigSNP file: /tmp/RtmpCN89XW/pop_a_1fe2676886c2.rds -#> with backing file: /tmp/RtmpCN89XW/pop_a_1fe2676886c2.bk +#> gen_tibble saved to /tmp/RtmpYea289/pop_a_202117bdf31.gt +#> using bigSNP file: /tmp/RtmpYea289/pop_a_202117bdf31.rds +#> with backing file: /tmp/RtmpYea289/pop_a_202117bdf31.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/pop_a_1fe2676886c2.gt')

+#> gt_load('/tmp/RtmpYea289/pop_a_202117bdf31.gt')

For this vignette, we don’t want to keep files, so we are using again a temporary path for the backing files, but in normal instances, we can simply omit the backingfile parameter, and the @@ -589,7 +588,7 @@

Saving and reading data
 gt_as_plink(example_gt, file =  tempfile("new_bed_"))
-#> [1] "/tmp/RtmpCN89XW/new_bed_1fe22a9cffd0.bed"
+#> [1] "/tmp/RtmpYea289/new_bed_202113dff174.bed"

This will also write a .bim and .fam file and save them together with the .bed file. Note that, from the main tibble, only id, population and sex will be preserved in the @@ -623,22 +622,22 @@

Merging databigsnp_path_a <- bigsnpr::snp_readBed(bed_path_pop_a, backingfile = tempfile("pop_a_")) pop_a_gt <- gen_tibble(bigsnp_path_a) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/pop_a_1fe23fb24843.gt -#> using bigSNP file: /tmp/RtmpCN89XW/pop_a_1fe23fb24843.rds -#> with backing file: /tmp/RtmpCN89XW/pop_a_1fe23fb24843.bk +#> gen_tibble saved to /tmp/RtmpYea289/pop_a_20219fe59dc.gt +#> using bigSNP file: /tmp/RtmpYea289/pop_a_20219fe59dc.rds +#> with backing file: /tmp/RtmpYea289/pop_a_20219fe59dc.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/pop_a_1fe23fb24843.gt') +#> gt_load('/tmp/RtmpYea289/pop_a_20219fe59dc.gt') bed_path_pop_b <- system.file("extdata/pop_b.bed", package = "tidypopgen") bigsnp_path_b <- bigsnpr::snp_readBed(bed_path_pop_b, backingfile = tempfile("pop_b_")) pop_b_gt <- gen_tibble(bigsnp_path_b) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/pop_b_1fe221a0cd9e.gt -#> using bigSNP file: /tmp/RtmpCN89XW/pop_b_1fe221a0cd9e.rds -#> with backing file: /tmp/RtmpCN89XW/pop_b_1fe221a0cd9e.bk +#> gen_tibble saved to /tmp/RtmpYea289/pop_b_20219767173.gt +#> using bigSNP file: /tmp/RtmpYea289/pop_b_20219767173.rds +#> with backing file: /tmp/RtmpYea289/pop_b_20219767173.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/pop_b_1fe221a0cd9e.gt') +#> gt_load('/tmp/RtmpYea289/pop_b_20219767173.gt')

And inspect them:

 pop_a_gt
@@ -707,12 +706,12 @@ 

Merging data#> ( 5 were flipped to match the reference set) #> ( 2 are ambiguous, of which 2 were removed) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/gt_merged.gt -#> using bigSNP file: /tmp/RtmpCN89XW/gt_merged.rds -#> with backing file: /tmp/RtmpCN89XW/gt_merged.bk +#> gen_tibble saved to /tmp/RtmpYea289/gt_merged.gt +#> using bigSNP file: /tmp/RtmpYea289/gt_merged.rds +#> with backing file: /tmp/RtmpYea289/gt_merged.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/gt_merged.gt')

+#> gt_load('/tmp/RtmpYea289/gt_merged.gt')

Let’s check the resulting gen_tibble:

 merged_gt
@@ -773,12 +772,12 @@ 

Imputationbed_file <- system.file("extdata", "example-missing.bed", package = "bigsnpr") missing_gt <- gen_tibble(bed_file, backingfile = tempfile("missing_")) #> -#> gen_tibble saved to /tmp/RtmpCN89XW/missing_1fe23b55f45.gt -#> using bigSNP file: /tmp/RtmpCN89XW/missing_1fe23b55f45.rds -#> with backing file: /tmp/RtmpCN89XW/missing_1fe23b55f45.bk +#> gen_tibble saved to /tmp/RtmpYea289/missing_20213f03c54f.gt +#> using bigSNP file: /tmp/RtmpYea289/missing_20213f03c54f.rds +#> with backing file: /tmp/RtmpYea289/missing_20213f03c54f.bk #> make sure that you do NOT delete those files! #> to reload the gen_tibble in another session, use: -#> gt_load('/tmp/RtmpCN89XW/missing_1fe23b55f45.gt') +#> gt_load('/tmp/RtmpYea289/missing_20213f03c54f.gt') missing_gt #> # A gen_tibble: 500 loci #> # A tibble: 200 × 3 diff --git a/articles/a02_qc.html b/articles/a02_qc.html index 6c681fe3..661221ec 100644 --- a/articles/a02_qc.html +++ b/articles/a02_qc.html @@ -316,15 +316,15 @@

Save
 gt_save(ld_data, file_name = tempfile())
## 
-## gen_tibble saved to /tmp/RtmpcxfaGM/file203214d46880.gt
-
## using bigSNP file: /tmp/RtmpcxfaGM/file20325b7c826a.rds
-
## with backing file: /tmp/RtmpcxfaGM/file20325b7c826a.bk
+## gen_tibble saved to /tmp/RtmpDgULOM/file20752545631f.gt

+
## using bigSNP file: /tmp/RtmpDgULOM/file20757d31544b.rds
+
## with backing file: /tmp/RtmpDgULOM/file20757d31544b.bk
## make sure that you do NOT delete those files!
## to reload the gen_tibble in another session, use:
-
## gt_load('/tmp/RtmpcxfaGM/file203214d46880.gt')
-
## [1] "/tmp/RtmpcxfaGM/file203214d46880.gt" 
-## [2] "/tmp/RtmpcxfaGM/file20325b7c826a.rds"
-## [3] "/tmp/RtmpcxfaGM/file20325b7c826a.bk"
+
## gt_load('/tmp/RtmpDgULOM/file20752545631f.gt')
+
## [1] "/tmp/RtmpDgULOM/file20752545631f.gt" 
+## [2] "/tmp/RtmpDgULOM/file20757d31544b.rds"
+## [3] "/tmp/RtmpDgULOM/file20757d31544b.bk"
diff --git a/articles/a03_example_clustering_and_dapc.html b/articles/a03_example_clustering_and_dapc.html index e772a80e..04714919 100644 --- a/articles/a03_example_clustering_and_dapc.html +++ b/articles/a03_example_clustering_and_dapc.html @@ -475,7 +475,7 @@

Clustering with sNMF
 geno_file <- gt_as_geno_lea(anole_gt)
 geno_file
-#> [1] "/tmp/Rtmp8ZVyLK/anolis_207319ed399b.geno"
+#> [1] "/tmp/RtmptyAaU4/anolis_20b8d3b88ff.geno"

Note that the .geno file is placed by default in the same directory and using the same name as the backing file of the gen_tibble

diff --git a/pkgdown.yml b/pkgdown.yml index a7feb8fb..ea5be428 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -6,4 +6,4 @@ articles: a02_qc: a02_qc.html a03_example_clustering_and_dapc: a03_example_clustering_and_dapc.html a99_plink_cheatsheet: a99_plink_cheatsheet.html -last_built: 2024-08-21T14:49Z +last_built: 2024-09-13T16:55Z