QMS2 How-To: A step-by-step guide for using the QTL Macro for SASŪ Software[1] | ||
---|---|---|
Prev | Chapter 2. I just want to analyze my data! | Next |
This section is put at the beginning to both provide a quick reference to remind the user of the commands to type and to provide an introduction to what will come in later sections. Unless you are already familiar QMS2 this section will probably not be enough to get the data analysis started.
Example 2-1. What to type
$ gunzip -c qms2-0.07.tar.gz | tar -xvf - qms2/qms2.sas qms2/ghimport.sas qms2/pre-sas.sh $ cd qms2 $ mv dump.ibd dump.ibd.old $ gh2 < my_genehunter.in analyzing pedigree 649... using non-originals: 3 4 5 6 analyzing pedigree 650... using non-originals: 3 4 5 6 npl:6> file to store IBD distribution [ibd_dist.out]: npl:7> ...goodbye... $ pre-sas.sh dump.ibd Converting "dump.ibd" to "dump-sas.ibd"...done. $ sas myanalyzer.sas $ less myanalyzer.log $ less myanalyzer.lst $ gv DF_Augmented.eps & $ gv DeFries-Fulker.eps & $ gv Haseman-Elston.eps & $ gv New-HE.eps & |
Example 2-2. my_genehunter.in
disp score off load mark linkage.dat increment distance 2 scan ped genehunter.ped dump ibd dump.ibd quit |
Example 2-3. myanalyzer.sas
/* Tell SAS to look in the current directory for any macros */ options mautosource sasautos=('.'); /* read in data files */ %ghimport(ibdfile=dump-sas.ibd, phenfile=genehunter.ped, markers=10, missing=-99); /* analyze the imported data and produce plots */ %qms2(infce=1, plot=1); /* print out the results of the analysis */ proc print data=stats; /* print out the influence statistics */ proc print data=infce |