<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to RandomSNPsQTL</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>Recent changes to RandomSNPsQTL</description><atom:link href="https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 03 Jul 2018 10:19:22 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/feed" rel="self" type="application/rss+xml"/><item><title>RandomSNPsQTL modified by Christos Vlachos</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -1,6 +1,6 @@
 [TOC]
 #1 Introduction
-We provide a SNP that allows to randomly pick the QTLs for the qt-mode and the qff-mode. As input the MimicrEE2 haplotypes are required.
+We provide a SNP that allows to randomly picking the QTLs for the qt-mode and the qff-mode. As input the MimicrEE2 haplotypes are required.
 The script allows for two options

  * all selected SNPs may have the same effect size
@@ -23,7 +23,7 @@
 * --d the dominance effect of the selected SNPs; default = 0.0
 * --effect-file provide a file with the effect size distribution of the selected SNPs (this will override any values provided in *--a* or *--d*)

-The script will first selected all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Than it selectes the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as having the effect size *a* while the other allele has effect size *-a*. 
+The script will first select all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Then it selects the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as having the effect size *a* while the other allele has effect size *-a*. 

 #2 Pick SNPs with identical additive effect size

@@ -96,7 +96,7 @@
 python scripts/pick-SNPs-QTL.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --effect-file effectsizedistr.txt --f 0.05
 ~~~~~

-and we obtain an output similiar to this one
+and we obtain an output similar to this one

 ~~~~~
 3L 18929259    T/A 1.2 0.0
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christos Vlachos</dc:creator><pubDate>Tue, 03 Jul 2018 10:19:22 -0000</pubDate><guid>https://sourceforge.net0302876c233baf9a7e34f1a7e09ce3bc23898fc1</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -99,6 +99,26 @@
 and we obtain an output similiar to this one

 ~~~~~
+3L 18929259    T/A 1.2 0.0
+2L 19698812    T/C 1.0 0.0
+2L 7021887 G/A 1.0 0.0
+2L 7617017 T/A 1.0 0.0
+3L 348772  G/T 1.5 0.0
+3L 15841049    G/T 1.2 0.0
+3R 13789648    C/G 1.5 0.0
+3R 6987528 C/T 1.0 0.0
+3R 8719965 G/C 1.0 0.0
+X  4412847 A/C 1.0 0.0
+2L 17575441    A/G 1.0 0.0
+3R 25068798    A/G 1.0 0.0
+2R 13307602    T/A 1.0 0.0
+2L 9058000 G/C 1.1 0.0
+2L 13699585    G/T 1.2 0.0
+X  16920825    G/C 1.1 0.0
+3R 7001766 G/A 1.1 0.0
+3L 8041494 T/A 1.0 0.0
+2R 16534711    G/T 1.0 0.0
+2R 7452620 G/A 1.5 0.0
 ~~~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 16:11:37 -0000</pubDate><guid>https://sourceforge.net45649120fc418bfa17936a96240ded008a344b98</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -62,7 +62,7 @@
 #3 Pick SNPs with an additive effect size drawn from a distribution

 ## distribution of effect size
-You have to provide a file containing the distribution of effect sizes. 
+In order to randomly pick SNPs that follow some effect size distribution you have to provide a file containing the desired distribution of effect sizes. 

 The file needs to have two column and may have an arbitrary number of rows:

@@ -85,7 +85,7 @@

 The script will assign a random effect sizes to each selected SNPs. The effect size is  drawn from this file by picking random rows with replacement.
 Thus the  combination of additive effect size and dominance effect as provided in the file will be maintained.  
-Based on this example most SNPs will have an additive effect 1.0 and all SNPs will have a dominance effect of 0.0.
+Based on this example most SNPs will have an additive effect 1.0, some have an additive effect of 1.2 and few will have an effect of 1.5. But all SNPs will have a dominance effect of 0.0.

 ## pick the QTLs
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 16:09:23 -0000</pubDate><guid>https://sourceforge.net4ef4adf213da7ba5697089b657c4a9ea291b8222</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,6 +1,6 @@
 [TOC]
 #1 Introduction
-We provide a SNP that allows to randomly pick the QTLs for the qt and the qff-mode. As input the MimicrEE2 haplotypes are required.
+We provide a SNP that allows to randomly pick the QTLs for the qt-mode and the qff-mode. As input the MimicrEE2 haplotypes are required.
 The script allows for two options

  * all selected SNPs may have the same effect size
@@ -12,7 +12,7 @@
 ## Requirements
 First download the MimicrEE2 haplotypes https://sourceforge.net/projects/mimicree2/files/starvation_resistance/mimicree_format_dgrp_snps_X_chromosome.gz/download

-Than download the script 
+Than download the script https://sourceforge.net/projects/mimicree2/files/scripts/pick-SNPs-QTL.py/download

 the following parameters are important:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 16:05:40 -0000</pubDate><guid>https://sourceforge.net4dd9d27508eb6ed92f6bcf443af26ba19eae789f</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -23,10 +23,9 @@
 * --d the dominance effect of the selected SNPs; default = 0.0
 * --effect-file provide a file with the effect size distribution of the selected SNPs (this will override any values provided in *--a* or *--d*)

-The script will first selected all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Than it selectes the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as the beneficial one. 
+The script will first selected all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Than it selectes the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as having the effect size *a* while the other allele has effect size *-a*. 

-#2 Pick SNPs with identical effect size
-
+#2 Pick SNPs with identical additive effect size

 ~~~~~~
@@ -36,92 +35,70 @@
 and we for example obtain the following output (*cat additive.txt*)

 ~~~~~
-[s]
-3R 13879402    A/T 0.1 0.5
-2R 9477466 C/T 0.1 0.5
-3R 9328727 G/C 0.1 0.5
-3L 16184512    T/C 0.1 0.5
-2L 1969063 C/T 0.1 0.5
-X  16445969    A/G 0.1 0.5
-3L 13434376    C/T 0.1 0.5
-X  2546369 G/C 0.1 0.5
-2L 15610136    G/T 0.1 0.5
-X  1737206 A/T 0.1 0.5
-2R 10601625    T/G 0.1 0.5
-3L 8504833 C/A 0.1 0.5
-2R 10707643    T/G 0.1 0.5
-2R 6685134 G/A 0.1 0.5
-2R 612843  A/T 0.1 0.5
-2R 7289434 T/C 0.1 0.5
-3R 12359406    G/A 0.1 0.5
-2L 4715803 A/C 0.1 0.5
-2L 16304941    G/T 0.1 0.5
-3R 634316  C/T 0.1 0.5
+3L 12964331    C/T 1.0 0.0
+3R 19601182    G/A 1.0 0.0
+3R 24104354    A/C 1.0 0.0
+3R 9187668 T/A 1.0 0.0
+3L 2923043 T/G 1.0 0.0
+2L 6614778 T/C 1.0 0.0
+2L 18900183    G/C 1.0 0.0
+2L 4326294 A/G 1.0 0.0
+3R 6801867 T/G 1.0 0.0
+3R 14995600    A/T 1.0 0.0
+2R 14050081    T/C 1.0 0.0
+3L 13393686    A/T 1.0 0.0
+X  16430602    A/T 1.0 0.0
+X  4327124 G/T 1.0 0.0
+2L 2172947 T/A 1.0 0.0
+2R 18124893    G/A 1.0 0.0
+3L 17693433    G/T 1.0 0.0
+3R 26933314    G/A 1.0 0.0
+2L 15246918    A/G 1.0 0.0
+3L 2598523 G/A 1.0 0.0
 ~~~~~

 For details on this file format see [SelectedLoci]

-#3 Pick SNPs with an effect size drawn from a distribution
+#3 Pick SNPs with an additive effect size drawn from a distribution

 ## distribution of effect size
 You have to provide a file containing the distribution of effect sizes. 

 The file needs to have two column and may have an arbitrary number of rows:

-* column1: the selection coefficient
-* column2: the heterozygous effect
+* column1: the addtive effect size 
+* column2: the dominance effect

 For examle given the following content stored in file *effectsizedistr.txt*
 ~~~~~
-0.1     0.5
-0.1     0.5
-0.1     0.5
-0.1     0.5
-0.2     0.5
-0.3     0.5
-0.4     0.5
-0.5     0.5
+1.0    0.0
+1.5    0.0
+1.0    0.0
+1.1    0.0
+1.2    0.0
+1.2    0.0
+1.0    0.0
+1.0    0.0
 ~~~~~

 The script will assign a random effect sizes to each selected SNPs. The effect size is  drawn from this file by picking random rows with replacement.
-Thus the  combination of selection coefficient and heterozygous effect as provided in the file will be maintained.  
-Based on this example most SNPs will have a selection coefficient of 0.1 and all SNPs will have a heterozygous effect of 0.5.
+Thus the  combination of additive effect size and dominance effect as provided in the file will be maintained.  
+Based on this example most SNPs will have an additive effect 1.0 and all SNPs will have a dominance effect of 0.0.

-## pick the loci
+## pick the QTLs

-With the following command we randomly pick the loci
+With the following command we randomly pick the QTLs

 ~~~~~
-python pick-SNPs-selcoef.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --effect-file effectsizedistr.txt --f 0.05
+python scripts/pick-SNPs-QTL.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --effect-file effectsizedistr.txt --f 0.05
 ~~~~~

 and we obtain an output similiar to this one

 ~~~~~
-[s]
-3R 6941048 C/T 0.1 0.5
-2R 12592831    C/G 0.1 0.5
-3L 8315781 T/G 0.5 0.5
-2L 15620577    T/C 0.5 0.5
-3R 9870974 C/T 0.5 0.5
-3R 7009549 T/A 0.5 0.5
-3L 14816601    A/C 0.1 0.5
-2R 19007146    G/A 0.5 0.5
-2R 10030750    C/T 0.3 0.5
-3L 12571197    C/T 0.1 0.5
-3L 10579497    T/C 0.2 0.5
-2L 17368433    T/A 0.3 0.5
-3L 12988113    C/T 0.1 0.5
-X  13161667    A/C 0.1 0.5
-2L 2719442 T/C 0.3 0.5
-3R 14201605    T/A 0.1 0.5
-2R 10250433    C/A 0.4 0.5
-2R 9251683 C/G 0.1 0.5
-3R 21063725    C/A 0.4 0.5
-2L 11212417    G/A 0.2 0.5
 ~~~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 16:02:46 -0000</pubDate><guid>https://sourceforge.net1d8621de02e8c4cc5c5435eaa60d7791bd05ab3d</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,25 +1,27 @@
 [TOC]
 #1 Introduction
-We provide a SNP that allows to randomly pick the targets of selection for the w-mode. As input the MimicrEE2 haplotypes are required.
-The script provides two options
+We provide a SNP that allows to randomly pick the QTLs for the qt and the qff-mode. As input the MimicrEE2 haplotypes are required.
+The script allows for two options

  * all selected SNPs may have the same effect size
  * the selected SNPs may follow a distribution of effect sizes as provided in a file
+
+**Note** this is quite similar to randomly picking the targets of selection for the w-mode [RandomSNPsWMode]

 ## Requirements
 First download the MimicrEE2 haplotypes https://sourceforge.net/projects/mimicree2/files/starvation_resistance/mimicree_format_dgrp_snps_X_chromosome.gz/download

-Than download the script https://sourceforge.net/projects/mimicree2/files/scripts/pick-SNPs-selcoef.py/download
+Than download the script 

 the following parameters are important:

 * --mimhap the MimicrEE2 haplotype file; may be zipped or unzipped
 * --n the number of selected loci
 * --f the minimum allele frequency; For example if *--f 0.05* is provided all SNPs will have an allele frequency betwee 0.05 and 0.95
-* --s the selection coefficients of the selected SNPs (either --s or --effect-file needs to be provided) 
-* --h the heterozygous effect of the selected SNPs; default = 0.5 
-* --effect-file provide a file with the effect size distribution of the selected SNPs (this will override any values provided in *--s* or *--h*)
+* --a the additive effect size of the selected SNPs (either --a or --effect-file needs to be provided) 
+* --d the dominance effect of the selected SNPs; default = 0.0
+* --effect-file provide a file with the effect size distribution of the selected SNPs (this will override any values provided in *--a* or *--d*)

 The script will first selected all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Than it selectes the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as the beneficial one. 

@@ -28,10 +30,10 @@

 ~~~~~~
-python pick-SNPs-selcoef.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --s 0.1 --f 0.05 &amp;gt; sellocus.txt
+python pick-SNPs-QTL.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --a 1.0 --d 0.0 &amp;gt; additive.txt
 ~~~~~~

-and we for example obtain the following output (*cat sellocus.txt*)
+and we for example obtain the following output (*cat additive.txt*)

 ~~~~~
 [s]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 15:34:51 -0000</pubDate><guid>https://sourceforge.net87817b1c2d10b7a3d62e8b6a26b0af4e5d79d663</guid></item><item><title>RandomSNPsQTL modified by Robert Kofler</title><link>https://sourceforge.net/p/mimicree2/wiki/RandomSNPsQTL/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#1-introduction"&gt;1 Introduction&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#requirements"&gt;Requirements&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#2-pick-snps-with-identical-effect-size"&gt;2 Pick SNPs with identical effect size&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#3-pick-snps-with-an-effect-size-drawn-from-a-distribution"&gt;3 Pick SNPs with an effect size drawn from a distribution&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#distribution-of-effect-size"&gt;distribution of effect size&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#pick-the-loci"&gt;pick the loci&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="1-introduction"&gt;1 Introduction&lt;/h1&gt;
&lt;p&gt;We provide a SNP that allows to randomly pick the targets of selection for the w-mode. As input the MimicrEE2 haplotypes are required.&lt;br/&gt;
The script provides two options&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;all selected SNPs may have the same effect size&lt;/li&gt;
&lt;li&gt;the selected SNPs may follow a distribution of effect sizes as provided in a file&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;/h2&gt;
&lt;p&gt;First download the MimicrEE2 haplotypes &lt;a href="https://sourceforge.net/projects/mimicree2/files/starvation_resistance/mimicree_format_dgrp_snps_X_chromosome.gz/download"&gt;https://sourceforge.net/projects/mimicree2/files/starvation_resistance/mimicree_format_dgrp_snps_X_chromosome.gz/download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Than download the script &lt;a href="https://sourceforge.net/projects/mimicree2/files/scripts/pick-SNPs-selcoef.py/download"&gt;https://sourceforge.net/projects/mimicree2/files/scripts/pick-SNPs-selcoef.py/download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the following parameters are important:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;--mimhap the MimicrEE2 haplotype file; may be zipped or unzipped&lt;/li&gt;
&lt;li&gt;--n the number of selected loci&lt;/li&gt;
&lt;li&gt;--f the minimum allele frequency; For example if &lt;em&gt;--f 0.05&lt;/em&gt; is provided all SNPs will have an allele frequency betwee 0.05 and 0.95&lt;/li&gt;
&lt;li&gt;--s the selection coefficients of the selected SNPs (either --s or --effect-file needs to be provided) &lt;/li&gt;
&lt;li&gt;--h the heterozygous effect of the selected SNPs; default = 0.5 &lt;/li&gt;
&lt;li&gt;--effect-file provide a file with the effect size distribution of the selected SNPs (this will override any values provided in &lt;em&gt;--s&lt;/em&gt; or &lt;em&gt;--h&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The script will first selected all loci that fullfill the frequency criteria (thus having a minimum frequency of --f). Than it selectes the requested number of loci randomly from this set. Finally it randomly chooses one of the two alleles at each SNPs as the beneficial one. &lt;/p&gt;
&lt;h1 id="2-pick-snps-with-identical-effect-size"&gt;2 Pick SNPs with identical effect size&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;python pick-SNPs-selcoef.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --s 0.1 --f 0.05 &amp;gt; sellocus.txt
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and we for example obtain the following output (&lt;em&gt;cat sellocus.txt&lt;/em&gt;)&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[s]&lt;/span&gt;
&lt;span class="na"&gt;3R  13879402    A/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  9477466 C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  9328727 G/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  16184512    T/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  1969063 C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;X   16445969    A/G 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  13434376    C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;X   2546369 G/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  15610136    G/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;X   1737206 A/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  10601625    T/G 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  8504833 C/A 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  10707643    T/G 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  6685134 G/A 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  612843  A/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  7289434 T/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  12359406    G/A 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  4715803 A/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  16304941    G/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  634316  C/T 0.1 0.5&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For details on this file format see &lt;a class="alink" href="/p/mimicree2/wiki/SelectedLoci/"&gt;[SelectedLoci]&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="3-pick-snps-with-an-effect-size-drawn-from-a-distribution"&gt;3 Pick SNPs with an effect size drawn from a distribution&lt;/h1&gt;
&lt;h2 id="distribution-of-effect-size"&gt;distribution of effect size&lt;/h2&gt;
&lt;p&gt;You have to provide a file containing the distribution of effect sizes. &lt;/p&gt;
&lt;p&gt;The file needs to have two column and may have an arbitrary number of rows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;column1: the selection coefficient&lt;/li&gt;
&lt;li&gt;column2: the heterozygous effect&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For examle given the following content stored in file &lt;em&gt;effectsizedistr.txt&lt;/em&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;0.1     0.5
0.1     0.5
0.1     0.5
0.1     0.5
0.2     0.5
0.3     0.5
0.4     0.5
0.5     0.5
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The script will assign a random effect sizes to each selected SNPs. The effect size is  drawn from this file by picking random rows with replacement.&lt;br/&gt;
Thus the  combination of selection coefficient and heterozygous effect as provided in the file will be maintained.&lt;br/&gt;
Based on this example most SNPs will have a selection coefficient of 0.1 and all SNPs will have a heterozygous effect of 0.5.&lt;/p&gt;
&lt;h2 id="pick-the-loci"&gt;pick the loci&lt;/h2&gt;
&lt;p&gt;With the following command we randomly pick the loci&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;python pick-SNPs-selcoef.py --mimhap mimicree_format_dgrp_snps_X_chromosome.gz --n 20 --effect-file effectsizedistr.txt --f 0.05
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and we obtain an output similiar to this one&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[s]&lt;/span&gt;
&lt;span class="na"&gt;3R  6941048 C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  12592831    C/G 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  8315781 T/G 0.5 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  15620577    T/C 0.5 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  9870974 C/T 0.5 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  7009549 T/A 0.5 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  14816601    A/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  19007146    G/A 0.5 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  10030750    C/T 0.3 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  12571197    C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  10579497    T/C 0.2 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  17368433    T/A 0.3 0.5&lt;/span&gt;
&lt;span class="na"&gt;3L  12988113    C/T 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;X   13161667    A/C 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  2719442 T/C 0.3 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  14201605    T/A 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  10250433    C/A 0.4 0.5&lt;/span&gt;
&lt;span class="na"&gt;2R  9251683 C/G 0.1 0.5&lt;/span&gt;
&lt;span class="na"&gt;3R  21063725    C/A 0.4 0.5&lt;/span&gt;
&lt;span class="na"&gt;2L  11212417    G/A 0.2 0.5&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Thu, 28 Jun 2018 15:16:28 -0000</pubDate><guid>https://sourceforge.netedf207debd4bb2b414a5eb65cd933ff9a8dc969f</guid></item></channel></rss>