<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=Ancestry</id>
	<title>Ancestry - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=Ancestry"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Ancestry&amp;action=history"/>
	<updated>2026-09-25T22:56:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Ancestry&amp;diff=11342&amp;oldid=prev</id>
		<title>Zhanxw: Created page with &quot;= Introduction  =  Ancestry can infer ancestry using sequence reads in the Principal Component (PC) space.  It is suited for targeted/exome sequencing or whole genome sequenci...&quot;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Ancestry&amp;diff=11342&amp;oldid=prev"/>
		<updated>2014-08-12T18:53:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Introduction  =  Ancestry can infer ancestry using sequence reads in the Principal Component (PC) space.  It is suited for targeted/exome sequencing or whole genome sequenci...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction  =&lt;br /&gt;
&lt;br /&gt;
Ancestry can infer ancestry using sequence reads in the Principal Component (PC) space. &lt;br /&gt;
It is suited for targeted/exome sequencing or whole genome sequencing experiments. &lt;br /&gt;
Ancestry is implemented in C++ for fast computations.&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
To get a copy of the software, please contact: zhanxw@umich.edu .&lt;br /&gt;
&lt;br /&gt;
For CSG users, the binary executable is located at: /net/fantasia/home/zhanxw/spa/cpp/executable/ancestrySeq&lt;br /&gt;
&lt;br /&gt;
We plan to open source this program shortly.&lt;br /&gt;
 &lt;br /&gt;
= Command Line Options = &lt;br /&gt;
&lt;br /&gt;
== Input sequence data(--inSeq) ==&lt;br /&gt;
&lt;br /&gt;
Sequence data (BAM files) need to be preprocessed in .seq format. This procedure is described [http://genome.sph.umich.edu/wiki/LASER#Seq_file here].&lt;br /&gt;
&lt;br /&gt;
Seq file is generated from pileup files. It contains sequencing information and organize it in a LASER readable format.&lt;br /&gt;
The first two columns represent population id and individual id.&lt;br /&gt;
Subsequent columns are total read depths and reference base counts.&lt;br /&gt;
For example, column 3 and 4 are 0, 0 in the following example. That means at first marker, the sequence read depth is 0 and thus none of the reads has reference base.&lt;br /&gt;
We enforce tab delimiters between markers and space delimiters between each read depths and reference base counts.&lt;br /&gt;
On line of seq file looks like below:&lt;br /&gt;
&lt;br /&gt;
 NA12878.chrom22	NA12878.chrom22	0 0	0 0	0 0	0 0	0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Input pileup sites (--inSite) ==&lt;br /&gt;
&lt;br /&gt;
Site file is equivalent to BED file and it is used here to represent marker positions. &lt;br /&gt;
&lt;br /&gt;
The preprocessing procedure is described [http://genome.sph.umich.edu/wiki/LASER#Site_file here].&lt;br /&gt;
&lt;br /&gt;
An example site file looks like below:&lt;br /&gt;
&lt;br /&gt;
 CHR  POS      ID          REF  ALT&lt;br /&gt;
 1    752566   rs3094315   G    A&lt;br /&gt;
 1    768448   rs12562034  G    A&lt;br /&gt;
 1    1005806  rs3934834   C    T&lt;br /&gt;
 1    1018704  rs9442372   A    G&lt;br /&gt;
 1    1021415  rs3737728   A    G&lt;br /&gt;
&lt;br /&gt;
The site file has header line, and it contains chromosome, position(1-based), id (usually marker name), ref (reference allele) and alt (alternative allele).&lt;br /&gt;
&lt;br /&gt;
== Input parameter (--inModel) == &lt;br /&gt;
&lt;br /&gt;
This parameter specifies the SNP gradients and offsets. It is the output of program [http://genetics.cs.ucla.edu/spa/ spa]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Output prefix (--out) ==&lt;br /&gt;
&lt;br /&gt;
The parameter specifies the output prefix.&lt;br /&gt;
The main results will be stored in &amp;#039;&amp;#039;PREFIX&amp;#039;&amp;#039;.loc file.&lt;br /&gt;
&lt;br /&gt;
An example output file looks like below:&lt;br /&gt;
&lt;br /&gt;
  PopId   IndvId  Loc1    Loc2&lt;br /&gt;
  MPaS3287        MPaS3287        13.5669 176.051&lt;br /&gt;
  MPaS3287        MPaS3287.ConfInt95      6.43922,20.724  169.103,182.928&lt;br /&gt;
&lt;br /&gt;
Note, when &amp;#039;&amp;#039;--ci&amp;#039;&amp;#039; option is used, the outputted IndvID column will append &amp;quot;.ConfInt95&amp;quot; indicates that the inference results is a 95% confidence interval.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inference option (--bootstrap) == &lt;br /&gt;
&lt;br /&gt;
When this option is specified, the program will infer ancestral locations using a bootstrap procedure.&lt;br /&gt;
Essentially, we resample input sequence reads, and recalculate ancestral locations  after each shuffle.&lt;br /&gt;
The output will include ancestral locations from every resampling.&lt;br /&gt;
&lt;br /&gt;
== Inference option (--ci) == &lt;br /&gt;
&lt;br /&gt;
When this option is specified, the program will infer ancestral locations based on likelihood calculations.&lt;br /&gt;
On a two-dimensional space, this option infer the top, bottom, left and right boundaries of an ellipse region,&lt;br /&gt;
and the probability that the true ancestral location fells in this region is 95%.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
A basic command looks like:&lt;br /&gt;
&lt;br /&gt;
  ancestrySeq --inSeq 1108.amd.to.hgdp.seq --inSite HGDP_938.site --inModel spa.model.out --out test&lt;br /&gt;
&lt;br /&gt;
The result file, test.loc, includes inferred location for each sample listed in 1108.amd.to.hgdp.seq.&lt;br /&gt;
&lt;br /&gt;
= Resources =&lt;br /&gt;
&lt;br /&gt;
[http://genome.sph.umich.edu/wiki/LASER LASER] is a related project that starts earlier than ancestry. &lt;br /&gt;
Both software can perform ancestral inference. &lt;br /&gt;
But ancestral has computational advantages and does not sacrifice accuracies.&lt;br /&gt;
&lt;br /&gt;
= Contact  =&lt;br /&gt;
&lt;br /&gt;
Comments on this wiki page or questions related to preparing input files for LASER can be sent to [mailto:zhanxw@umich.edu Xiaowei Zhan].&lt;br /&gt;
This project was helped by Chaolong Wang and was directed by Gonçalo Abecasis.&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
</feed>