Skip to content

Commit

Permalink
Merge pull request #6 from alihamraoui/gh-page
Browse files Browse the repository at this point in the history
UPDATE: update documentation web page
  • Loading branch information
alihamraoui authored Jul 12, 2024
2 parents 6a47cdd + 350f37e commit d84dea6
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 3 deletions.
82 changes: 81 additions & 1 deletion docs/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="#">Use example</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#examples">EXAMPLES</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#sample-data">Sample data</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#basic-workflow">BASIC WORKFLOW</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#with-pcr-amplifiction">WITH PCR AMPLIFICTION</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#with-simulated-cell-type-counts">WITH SIMULATED CELL TYPE COUNTS</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#with-personalized-error-model">WITH PERSONALIZED ERROR MODEL</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#complete-workflow">COMPLETE WORKFLOW</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
Expand All @@ -78,7 +96,69 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">


<h2 id="usage">Usage</h2>
<p>User can choose among 4 ways to simulate template reads.
- use a real count matrix
- estimated the parameter from a real count matrix to simulate synthetic count matrix
- specified by his/her own the input parameter
- a combination of the above options</p>
<p>We use SPARSIM tools to simulate count matrix. for more information a bout synthetic count matrix, please read <a href="https://gitlab.com/sysbiobig/sparsim/-/blob/master/vignettes/sparsim.Rmd?ref_type=heads#Sec_Input_parameter_estimated_from_data">SPARSIM</a> documentaion.</p>
<h3 id="examples">EXAMPLES</h3>
<h5 id="sample-data">Sample data</h5>
<p>A demonstration dataset to initiate this workflow is accessible on zenodo DOI : <a href="https://zenodo.org/records/12731409">10.5281/zenodo.12731408</a>. This dataset is a subsample from a Nanopore run of the <a href="https://www.10xgenomics.com/datasets/5k-human-pbmcs-3-v3-1-chromium-controller-3-1-standard">10X 5k human pbmcs</a>.</p>
<p>The human GRCh38 <a href="https://ftp.ensembl.org/pub/release-112/fasta/homo_sapiens/cdna/">reference transcriptome</a>, <a href="https://ftp.ensembl.org/pub/release-112/gtf/homo_sapiens/">gtf annotation</a> and <a href="https://ftp.ensembl.org/pub/release-112/fasta/homo_sapiens/dna/">fasta referance genome</a> can be downloaded from Ensembl.</p>
<h5 id="basic-workflow">BASIC WORKFLOW</h5>
<pre><code class="language-bash"> nextflow run main.nf --matrix dataset/sub_pbmc_matrice.csv \
--transcriptome dataset/Homo_sapiens.GRCh38.cdna.all.fa \
--features gene_name \
--gtf dataset/genes.gtf
</code></pre>
<h5 id="with-pcr-amplifiction">WITH PCR AMPLIFICTION</h5>
<pre><code class="language-bash"> nextflow run main.nf --matrix dataset/sub_pbmc_matrice.csv \
--transcriptome dataset/Homo_sapiens.GRCh38.cdna.all.fa \
--features gene_name \
--gtf dataset/GRCh38-2020-A-genes.gtf \
--pcr_cycles 2 \
--pcr_dup_rate 0.7 \
--pcr_error_rate 0.00003
</code></pre>
<h5 id="with-simulated-cell-type-counts">WITH SIMULATED CELL TYPE COUNTS</h5>
<pre><code class="language-bash"> nextflow run main.nf --matrix dataset/sub_pbmc_matrice.csv \
--transcriptome dataset/Homo_sapiens.GRCh38.cdna.all.fa \
--features gene_name \
--gtf dataset/GRCh38-2020-A-genes.gtf \
--sim_celltypes true \
--cell_types_annotation dataset/sub_pbmc_cell_type.csv
</code></pre>
<h5 id="with-personalized-error-model">WITH PERSONALIZED ERROR MODEL</h5>
<pre><code class="language-bash">nextflow run main.nf --matrix dataset/sub_pbmc_matrice.csv \
--transcriptome dataset/Homo_sapiens.GRCh38.cdna.all.fa \
--features gene_name \
--gtf dataset/GRCh38-2020-A-genes.gtf \
--build_model true \
--fastq_model dataset/sub_pbmc_reads.fq \
--ref_genome dataset/GRCh38-2020-A-genome.fa
</code></pre>
<h5 id="complete-workflow">COMPLETE WORKFLOW</h5>
<pre><code class="language-bash"> nextflow run main.nf --matrix dataset/sub_pbmc_matrice.csv \
--transcriptome dataset/Homo_sapiens.GRCh38.cdna.all.fa \
--features gene_name \
--gtf dataset/GRCh38-2020-A-genes.gtf \
--sim_celltypes true \
--cell_types_annotation dataset/sub_pbmc_cell_type.csv
--build_model true \
--fastq_model dataset/sub_pbmc_reads.fq \
--ref_genome dataset/GRCh38-2020-A-genome.fa
--pcr_cycles 2 \
--pcr_dup_rate 0.7 \
--pcr_error_rate 0.00003
</code></pre>
<h2 id="results">Results</h2>
<p>After execution, results will be available in the specified <code>--outdir</code>. This includes simulated Nanopore reads <code>.fastq</code>, along with log files and QC report.</p>
<h2 id="cleaning-up">Cleaning Up</h2>
<p>To clean up temporary files generated by Nextflow:</p>
<pre><code class="language-bash">nextflow clean -f
</code></pre>

</div>
</div><footer>
Expand Down
Binary file modified docs/images/._schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ <h2 id="run-asarusim">Run AsaruSim</h2>

<!--
MkDocs version : 1.6.0
Build Date UTC : 2024-06-24 15:16:33.822496+00:00
Build Date UTC : 2024-07-12 13:10:38.343577+00:00
-->
4 changes: 4 additions & 0 deletions docs/introduction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="#citations">Citations</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#acknowledgements">Acknowledgements</a>
</li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -102,6 +104,8 @@ <h3 id="license">License</h3>
<p>AsaruSim is released under the <a href="https://github.com/alihamraoui/AsaruSim/blob/main/LICENSE">GPL 3.0 license</a>.</p>
<h3 id="citations">Citations</h3>
<p>If you use AsaruSim in your work, please cite us.</p>
<h3 id="acknowledgements">Acknowledgements</h3>
<p>We would like to express our gratitude to <a href="https://github.com/youyupei">Youyupei</a> for the development of <a href="https://github.com/youyupei/SLSim">SLSim</a>, which has been helpful to the AsaruSim workflow. Additionally, our thanks go to the teams behind <a href="https://github.com/rrwick/Badread">Badread</a> and <a href="https://gitlab.com/sysbiobig/sparsim">SPARSim</a>, whose tools are integral to the AsaruSim workflow.</p>

</div>
</div><footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/sitemap.xml.gz
Binary file not shown.

0 comments on commit d84dea6

Please sign in to comment.