-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
218 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. _formats-snplist: | ||
|
||
|
||
Causal SNPs | ||
=========== | ||
|
||
You can specify causal SNPs in a tab-delimited ``.snplist`` file. We follow `GCTA's .snplist format <https://yanglab.westlake.edu.cn/software/gcta/#GWASSimulation>`_ for this type of file. It has just two columns: | ||
|
||
.. list-table:: | ||
:widths: 15 15 25 | ||
:header-rows: 1 | ||
|
||
* - Name | ||
- Type | ||
- Description | ||
* - ID | ||
- string | ||
- A unique identifier for this variant in the file (ex: 'rs1234') | ||
* - BETA | ||
- float | ||
- The effect size assigned to this variant (ex: 0.08) | ||
|
||
.. note:: | ||
You should not include a header in this file. The file format does not have one. | ||
|
||
Examples | ||
-------- | ||
|
||
Refer to `tests/data/apoe.snplist <https://github.com/cast-genomics/haptools/blob/main/tests/data/apoe.snplist>`_ for an example containing just two SNPs. | ||
|
||
.. include:: ../../tests/data/apoe.snplist | ||
:literal: | ||
|
||
Converting to a ``.hap`` file | ||
----------------------------- | ||
The capabilities of the ``.snplist`` format are limited. For example, it does not allow users to specify a causal allele (REF vs ALT) for each SNP. You can use :ref:`the haptools API to upgrade to a .hap file <api-examples-snps2hap>` if needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# orderH beta | ||
# version 0.2.0 | ||
#H beta .2f Effect size in linear model | ||
H 19 45411941 45411942 rs429358 0.73 | ||
H 19 45412079 45412080 rs7412 0.30 | ||
V rs429358 45411941 45411942 rs429358 C | ||
V rs7412 45412079 45412080 rs7412 T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rs429358 0.73 | ||
rs7412 0.30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.