<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SFst</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>Recent changes to SFst</description><atom:link href="https://sourceforge.net/p/gbchen/wiki/SFst/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 05 Jun 2015 06:10:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gbchen/wiki/SFst/feed" rel="self" type="application/rss+xml"/><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -74,6 +74,7 @@

 Given the estimated Fst, the geographic location of each cohort can be inferred using "fpc" subcommand.

+1000 Genome reference samples can be found at [*1000 Reference samples*](http://sourceforge.net/projects/gbchen/files/Demo/1kg_ref.zip/download)
 Examples

 ~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Fri, 05 Jun 2015 06:10:27 -0000</pubDate><guid>https://sourceforge.net5a4f44427d91b0ce33da0e19b97af599c1d107d0</guid></item><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,4 +1,4 @@
-**Fst between cohorts**
+**Fst estimation between cohorts and geographic location inference**
 Fst is commonly used as a measure for genetic differentiation. This function is designed to calculate Fst from GWAS summary statistics.

 **Master command**
@@ -71,3 +71,17 @@
 java -jar gear.jar sfst --meta-batch metalist.txt --qt-size qt-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --no-weight --out test
 java -jar gear.jar sfst --meta-batch metalist.txt --qt-size cc-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --me 50000 --no-weight --out test
 ~~~~~~~
+
+Given the estimated Fst, the geographic location of each cohort can be inferred using "fpc" subcommand.
+
+Examples
+
+~~~~~~~~
+java -jar gear.jar fpc --fst test.fst --out test
+java -jar gear.jar fpc --fst test.fst --ref 9 3 1 --out test
+~~~~~~~~
+
+test.fst is the fst matrix calculated from sfst. --ref specifies the three reference populations in test.fst. By default, the first three cohorts in test.fst will be set as the reference populations.
+
+The output is test.fpc, which has two columns represents coordinates of the inferred geographic location for each cohort.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Thu, 28 May 2015 12:49:28 -0000</pubDate><guid>https://sourceforge.net5f8725e51658efe5c977205b71f3d82bce1d1463</guid></item><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -59,12 +59,15 @@
 --verbose
 If the option is switched on, the detailed fst resutls of each selected SNP will be saved into "*.fst.gz." for each pair of cohorts.

+--no-weight
+If this option is switched on, always assume the sample sizes were equal for each pair of cohorts.
+
 Examples

 ~~~~~~~
 java -jar gear.jar sfst --meta-batch metalist.txt --qt-size qt-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --out test
-java -jar gear.jar lam --meta-batch metalist.txt --qt-size cc-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --me 50000 --out test
+java -jar gear.jar sfst --meta-batch metalist.txt --qt-size cc-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --me 50000 --out test

-java -jar gear.jar lam --meta-batch metalist.txt --cc-size cc-sample-size.txt --out test
-java -jar gear.jar lam --meta-batch 1kg_OtherCohort.txt --qt-size qt-sample-size.txt  --key SNP RAF RAFSE A1 A2 CHR BP P --out test
+java -jar gear.jar sfst --meta-batch metalist.txt --qt-size qt-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --no-weight --out test
+java -jar gear.jar sfst --meta-batch metalist.txt --qt-size cc-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --me 50000 --no-weight --out test
 ~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Sat, 09 May 2015 12:06:55 -0000</pubDate><guid>https://sourceforge.net48cc006d11c7e3d76bb47a368e336030f183c7e8</guid></item><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,4 +1,4 @@
-**LambdaMeta**
+**Fst between cohorts**
 Fst is commonly used as a measure for genetic differentiation. This function is designed to calculate Fst from GWAS summary statistics.

 **Master command**
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Mon, 27 Apr 2015 03:46:30 -0000</pubDate><guid>https://sourceforge.nete3ec3eb518c8f3206b403394c0e58a0e1accb10e</guid></item><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -50,7 +50,7 @@
 In practice, if only want to calculate fst between the cohort to 1KG European samples, the user can put the summary statistic file for 1KG as the first file in --meta-batch and use "--top 1" option.

 --chr &amp;lt;arg&amp;gt;
-Specify the chromosome for analysis
+Specify the chromosome for analysis.

 --top &amp;lt;arg&amp;gt;
 This option tells the program that only the top X files listed in --meta-batch will be compared to all files. For example, if there are 10 summary statistic files included in --meta-batch, when "--top 1" is used, it only calculate fst between the first file and the rest of files.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Mon, 27 Apr 2015 03:45:38 -0000</pubDate><guid>https://sourceforge.neta59c9e3432dc2c40e364124719bf17f7673db5f1</guid></item><item><title>SFst modified by Guobo Chen</title><link>https://sourceforge.net/p/gbchen/wiki/SFst/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;LambdaMeta&lt;/strong&gt;&lt;br /&gt;
Fst is commonly used as a measure for genetic differentiation. This function is designed to calculate Fst from GWAS summary statistics.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Master command&lt;/strong&gt;&lt;br /&gt;
SFst&lt;/p&gt;
&lt;p&gt;The meta-data should have these columns: "SNP", "EAF" (Reference allele frequency), "SE" (sampling variance of EAF), "A1", "A2", "CHR", "BP", and "P". The keywords are case-insensitive, but should be specified in order as listed (there is no requirement for the order of these columns in summary statistic files). "A1" is the reference allele, and "A2" is the other allele. Other columns such as reference allele frequency, standard error of allele frequency can also be included.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SNP&lt;/th&gt;
&lt;th&gt;CHR&lt;/th&gt;
&lt;th&gt;BP&lt;/th&gt;
&lt;th&gt;A1&lt;/th&gt;
&lt;th&gt;A2&lt;/th&gt;
&lt;th&gt;OR/Beta&lt;/th&gt;
&lt;th&gt;SE&lt;/th&gt;
&lt;th&gt;P&lt;/th&gt;
&lt;th&gt;RAF&lt;/th&gt;
&lt;th&gt;RAF_SE&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;snp1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;G&lt;/td&gt;
&lt;td&gt;T&lt;/td&gt;
&lt;td&gt;1.05&lt;/td&gt;
&lt;td&gt;0.03&lt;/td&gt;
&lt;td&gt;0.03&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;td&gt;0.35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;snp2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;T&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;0.95&lt;/td&gt;
&lt;td&gt;0.033&lt;/td&gt;
&lt;td&gt;0.12&lt;/td&gt;
&lt;td&gt;0.3&lt;/td&gt;
&lt;td&gt;0.03&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The program will automatically eliminate ambiguous loci, such as A/T and G/C loci. In the example, the second row, which has ambiguous alleles will be eliminated.&lt;br /&gt;
Of note, all the summary statistic files should have the same column names, but their order can be different in each files.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Options&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;--meta-batch &amp;lt;arg&amp;gt;&lt;br /&gt;
Specify the batch file that each line contains one meta file.&lt;br /&gt;
It looks like:&lt;br /&gt;
gwas1.txt&lt;br /&gt;
gwas2.txt&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;--qt-size &amp;lt;arg&amp;gt;&lt;br /&gt;
Specify the file in which each line contains the sample size for the file at the corresponding row in meta-batch.&lt;br /&gt;
It looks like:&lt;br /&gt;
100&lt;br /&gt;
200&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;--cc-size &amp;lt;arg&amp;gt;&lt;br /&gt;
For case-control studies, each line has two elements, the number of cases and the number of controls for each corresponding file.&lt;br /&gt;
It looks like&lt;br /&gt;
200 300&lt;br /&gt;
1000 800&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;--me &amp;lt;arg&amp;gt;&lt;br /&gt;
Specifies the number of markers that should be sampled for calculating LambdaMeta or --fst.  By default it samples 30000 markers.&lt;/p&gt;
&lt;p&gt;--key &amp;lt;args&amp;gt;&lt;br /&gt;
Although summary statistic files have all the columns required, their names may different. For example, "markerID" for "SNP", "effect" for "beta", "SE" for "SE", "Ref_Allele" for "A1", "Other_Allele" for "A2",  "Chromosome" for "CHR", "POS" for "BP", "Pval" for "P", "RAF" for "RAF", and "freq_se" for "RAF_SE". Then this option should be used as&lt;br /&gt;
"--key markerID effect SE Ref_Allele Other_allele Chromosome POS Pval"&lt;br /&gt;
Pval will be used to calculate genomic inflation factor for each cohort.&lt;/p&gt;
&lt;p&gt;--top &amp;lt;arg&amp;gt;&lt;br /&gt;
This option tells the program only the top X files listed in --meta-batch will be compared to all files.  For example, if there are 10 summary statistic files included in --meta-batch, when "--top 1" is used, it only calculate lambdaMeta (of fst) between the first file and other files.&lt;br /&gt;
In practice, if only want to calculate fst between the cohort to 1KG European samples, the user can put the summary statistic file for 1KG as the first file in --meta-batch and use "--top 1" option.&lt;/p&gt;
&lt;p&gt;--chr &amp;lt;arg&amp;gt;&lt;br /&gt;
Specify the chromosome for analysis&lt;/p&gt;
&lt;p&gt;--top &amp;lt;arg&amp;gt;&lt;br /&gt;
This option tells the program that only the top X files listed in --meta-batch will be compared to all files. For example, if there are 10 summary statistic files included in --meta-batch, when "--top 1" is used, it only calculate fst between the first file and the rest of files.&lt;br /&gt;
In particular, if only want to calculate fst between any cohorts to 1KG European samples, the user can put the summary statistic file for 1KG as the first file in --meta-batch and use "--top 1" option.&lt;/p&gt;
&lt;p&gt;--verbose&lt;br /&gt;
If the option is switched on, the detailed fst resutls of each selected SNP will be saved into "*.fst.gz." for each pair of cohorts.&lt;/p&gt;
&lt;p&gt;Examples&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;java -jar gear.jar sfst --meta-batch metalist.txt --qt-size qt-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --out test
java -jar gear.jar lam --meta-batch metalist.txt --qt-size cc-sample-size.txt --key SNP EAF EAFSE A1 A2 CHR BP P --me 50000 --out test

java -jar gear.jar lam --meta-batch metalist.txt --cc-size cc-sample-size.txt --out test
java -jar gear.jar lam --meta-batch 1kg_OtherCohort.txt --qt-size qt-sample-size.txt  --key SNP RAF RAFSE A1 A2 CHR BP P --out test
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guobo Chen</dc:creator><pubDate>Mon, 27 Apr 2015 03:40:34 -0000</pubDate><guid>https://sourceforge.net1bdafc932a8a79f31e6e4e6f47a77153e00f36f3</guid></item></channel></rss>