<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=GENOMEPOP2</id>
	<title>GENOMEPOP2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=GENOMEPOP2"/>
	<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=GENOMEPOP2&amp;action=history"/>
	<updated>2026-05-18T20:19:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=GENOMEPOP2&amp;diff=87&amp;oldid=prev</id>
		<title>James: Created page with &quot;The CUNY HPC Center has installed GenomePop2 (/share/apps/genomepop) on ANDY. GenomePop2 is a serial code that reads all of its input parameters from a file in the user&#039;s working directory called &#039;GP2Input.txt&#039;.  How to set up such a file is explained in the How-To section at the GenomePop2 web-site here [http://webs.uvigo.es/acraaj/GP2howto.htm].  The following SLURM batch script runs the third example given in the How-To which defines different SNPs ancestral alleles i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=GENOMEPOP2&amp;diff=87&amp;oldid=prev"/>
		<updated>2022-10-20T20:06:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The CUNY HPC Center has installed GenomePop2 (/share/apps/genomepop) on ANDY. GenomePop2 is a serial code that reads all of its input parameters from a file in the user&amp;#039;s working directory called &amp;#039;GP2Input.txt&amp;#039;.  How to set up such a file is explained in the How-To section at the GenomePop2 web-site here [http://webs.uvigo.es/acraaj/GP2howto.htm].  The following SLURM batch script runs the third example given in the How-To which defines different SNPs ancestral alleles i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The CUNY HPC Center has installed GenomePop2 (/share/apps/genomepop) on ANDY. GenomePop2 is a serial code that reads all&lt;br /&gt;
of its input parameters from a file in the user&amp;#039;s working directory called &amp;#039;GP2Input.txt&amp;#039;.  How to set up such a file is explained in the&lt;br /&gt;
How-To section at the GenomePop2 web-site here [http://webs.uvigo.es/acraaj/GP2howto.htm].  The following SLURM batch script runs&lt;br /&gt;
the third example given in the How-To which defines different SNPs ancestral alleles in different populations.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This program has also been installed and can be found at &amp;#039;/share/apps/genomepop/1.0.6/bin/genomepop1&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --partition production&lt;br /&gt;
#SBATCH --job-name GENPOP2_serial&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
&lt;br /&gt;
# Find out name of master execution host (compute node)&lt;br /&gt;
echo -n &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SLURM Master compute node is: &amp;quot;&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
# You must explicitly change to the working directory in SLURM&lt;br /&gt;
cd $SLURM_SUBMIT_DIR&lt;br /&gt;
&lt;br /&gt;
# Just point to the serial executable to run&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Begin GENPOP2 Serial Run ...&amp;quot;&lt;br /&gt;
echo &amp;quot;&amp;quot;&lt;br /&gt;
/share/apps/genomepop/default/bin/genomepop2&lt;br /&gt;
echo &amp;quot;&amp;quot;&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; End   GENPOP2 Serial Run ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be dropped in to a file (say genomepop2.job) and started with the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub genomepop2.job&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This test case should take less than a minute to run and will produce SLURM output and error files beginning with the&lt;br /&gt;
job name &amp;#039;GENPOP2_serial&amp;#039;.  Details on the meaning of the SLURM script are covered above in the SLURM section. The most&lt;br /&gt;
important lines are the &amp;#039;#SBATCH --nodes=1:ntasks=1&amp;#039;. The first instructs&lt;br /&gt;
SLURM to select 1 resource &amp;#039;chunk&amp;#039; with 1 processor (core) and 1,920 MBs of memory in it for the job. The second instructs&lt;br /&gt;
SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects&lt;br /&gt;
to run the job will be printed in the SLURM output file by the &amp;#039;hostname&amp;#039; command.&lt;br /&gt;
&lt;br /&gt;
While it is not visible in this SLURM script, your customized &amp;#039;GP2Input.txt&amp;#039; file &amp;#039;&amp;#039;MUST&amp;#039;&amp;#039; be present in the working directory&lt;br /&gt;
for the job.  When the job completes, GenomePop2 will have created a subdirectory called &amp;#039;GP2_Results&amp;#039; with the results&lt;br /&gt;
files in it.  One could easily adapt this script to run GenomePop version 1.&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>