-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Greatly) Simplify the pedigree definition file format of grups-rs
- make the template definition file of grups-rs mirror the standard of `.ped` and `.fam` file formats as closely as possible. - grups-rs remains backwards-compatible with the old file format.
- Loading branch information
1 parent
0564c45
commit 6117c86
Showing
14 changed files
with
751 additions
and
107 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,48 @@ | ||
# example pedigree definition input file | ||
# The first section defines the individuals in the pedigree, and mirrors that | ||
# of a standard '.pedigree' file or that of a PLINK '.fam' file. | ||
# Note that: | ||
# - only three columns are required by grups-rs, but the format is also | ||
# compatible with the standard 4- and 6-field version of these files (in that | ||
# case, the 'famid', 'sex', and 'aff' columns are ignored). | ||
# - The header line is optional, but can help GRUPS-rs in finding the | ||
# appropriate column index, should its location be non-standard. | ||
# - Empty lines and comments (inline of full-length) are ignored by the program | ||
# | ||
# The second section defines which pedigree comparisons should GRUPS-rs target | ||
# Note that: | ||
# - any line starting with the 'COMPARE' keyword is considered a comparison | ||
# definition line. | ||
# - A comparison definition line is expected to adhere to the following scheme: | ||
# | ||
# COMPARE <label> <iid-1> <iid-2> | ||
# | ||
# Where, | ||
# - <label> is the user-defined name for that kinship tie | ||
# - <iid-1> is the individual id of the first sample being compared | ||
# - <iid-2> is the individual id of the second sample involved in the comparison | ||
|
||
# First section: define the pedigree's topology | ||
iid fid mid | ||
father 0 0 | ||
mother 0 0 | ||
child1 father mother | ||
child2 father mother | ||
wife 0 0 | ||
gchild child1 wife | ||
cousin child2 husband | ||
husband 0 0 | ||
inbred child1 child2 | ||
stepmom 0 0 | ||
halfsib child1 stepmom | ||
|
||
# Second section: target specific comparisons within the pedigree | ||
COMPARE Inbred_self inbred inbred | ||
COMPARE Twins_or_self father father | ||
COMPARE Parent_child father child1 | ||
COMPARE Siblings child1 child2 | ||
COMPARE GPGC mother cousin | ||
COMPARE Avuncular child2 gchild | ||
COMPARE Half-siblings gchild halfsib | ||
COMPARE Cousins cousin gchild | ||
COMPARE Unrelated father mother |
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,46 @@ | ||
# example pedigree definition input file | ||
# The first section defines the individuals in the pedigree, and mirrors that | ||
# of a standard '.pedigree' file or that of a PLINK '.fam' file. | ||
# Note that: | ||
# - only three columns are required by grups-rs, but the format is also | ||
# compatible with the standard 4- and 6-field version of these files (in that | ||
# case, the 'famid', 'sex', and 'aff' columns are ignored). | ||
# - The header line is optional, but can help GRUPS-rs in finding the | ||
# appropriate column index, should its location be non-standard. | ||
# - Empty lines and comments (inline of full-length) are ignored by the program | ||
# | ||
# The second section defines which pedigree comparisons should GRUPS-rs target | ||
# Note that: | ||
# - any line starting with the 'COMPARE' keyword is considered a comparison | ||
# definition line. | ||
# - A comparison definition line is expected to adhere to the following scheme: | ||
# | ||
# COMPARE <label> <iid-1> <iid-2> | ||
# | ||
# Where, | ||
# - <label> is the user-defined name for that kinship tie | ||
# - <iid-1> is the individual id of the first sample being compared | ||
# - <iid-2> is the individual id of the second sample involved in the comparison | ||
|
||
# First section: define the pedigree's topology | ||
iid fid mid | ||
father 0 0 | ||
mother 0 0 | ||
son father mother | ||
son_mate 0 0 | ||
gson son son_mate | ||
gson_mate 0 0 | ||
ggson gson gson_mate | ||
ggson_mate 0 0 | ||
gggson ggson ggson_mate | ||
gggson_mate 0 0 | ||
ggggson gggson gggson_mate | ||
|
||
# Second section: target specific comparisons within the pedigree | ||
COMPARE Self father father # Identical Twins or Self comparison | ||
COMPARE First father son # First degree | ||
COMPARE Second father gson # Second degree | ||
COMPARE Third father ggson # Third degree | ||
COMPARE Fourth father gggson # Fourth Degree | ||
COMPARE Fifth father ggggson # Fifth Degree | ||
COMPARE Unrelated father mother # Unrelated |
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,33 @@ | ||
iid fid mid | ||
0.0F 0 0 | ||
0.1M 0 0 | ||
1.0F 0.0F 0.1M | ||
1.1M 0 0 | ||
1.2F 0.0F 0.1M | ||
2.0M 1.0F 1.1M | ||
2.1M 1.1M 1.2F | ||
2.2M 1.1M 1.2F | ||
2.3F 0 0 | ||
3.0M 2.2M 2.3F | ||
|
||
# Expected pedigree: | ||
# 0.0F -------+------- 0.1M | ||
# | | ||
# +----------+----------+ | ||
# | | | ||
# 1.0F --+-- 1.1M --+-- 1.2F | ||
# | | | ||
# | +---+---+ | ||
# | | | | ||
# 2.0M 2.1M 2.2M --+-- 2.3F | ||
# | | ||
# 3.0M | ||
# | ||
|
||
COMPARE Self 3.0M 3.0M # E(r)=1.0 | ||
COMPARE 1st-degree 2.1M 2.2M # E(r)=0.5 | ||
COMPARE 2nd+3rd-degree 2.0M 2.1M # E(r)=0.375 (0.25 + 0.125) | ||
COMPARE 2nd-degree 2.1M 3.0M # E(r)=0.25 | ||
COMPARE 3rd+4th-degree 2.0M 3.0M # E(r)=0.1875 (0.125 + 0.0625) | ||
COMPARE 3rd-degree 1.0F 3.0M # E(r)=0.125 | ||
COMPARE Unrelated 2.0M 2.3F # E(r)=0.0 |
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,44 @@ | ||
# example pedigree definition input file | ||
# The first section defines the individuals in the pedigree, and mirrors that | ||
# of a standard '.pedigree' file or that of a PLINK '.fam' file. | ||
# Note that: | ||
# - only three columns are required by grups-rs, but the format is also | ||
# compatible with the standard 4- and 6-field version of these files (in that | ||
# case, the 'famid', 'sex', and 'aff' columns are ignored). | ||
# - The header line is optional, but can help GRUPS-rs in finding the | ||
# appropriate column index, should its location be non-standard. | ||
# - Empty lines and comments (inline of full-length) are ignored by the program | ||
# | ||
# The second section defines which pedigree comparisons should GRUPS-rs target | ||
# Note that: | ||
# - any line starting with the 'COMPARE' keyword is considered a comparison | ||
# definition line. | ||
# - A comparison definition line is expected to adhere to the following scheme: | ||
# | ||
# COMPARE <label> <iid-1> <iid-2> | ||
# | ||
# Where, | ||
# - <label> is the user-defined name for that kinship tie | ||
# - <iid-1> is the individual id of the first sample being compared | ||
# - <iid-2> is the individual id of the second sample involved in the comparison | ||
|
||
# First section: define the pedigree's topology | ||
iid fid mid | ||
father 0 0 | ||
mother 0 0 | ||
stepfather 0 0 | ||
stepson mother stepfather | ||
child1 father mother | ||
child2 father mother | ||
wife 0 0 | ||
gchild child1 wife | ||
cousin child2 husband | ||
husband 0 0 | ||
|
||
# Second section: target specific comparisons within the pedigree | ||
COMPARE Self father father | ||
COMPARE Siblings child1 child2 | ||
COMPARE Half-siblings child1 stepson | ||
COMPARE Cousins cousin gchild | ||
COMPARE Unrelated father mother | ||
|
Oops, something went wrong.