<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://hbeale.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://hbeale.github.io/" rel="alternate" type="text/html" /><updated>2025-01-21T20:04:45+00:00</updated><id>https://hbeale.github.io/feed.xml</id><title type="html">Documentation</title><subtitle></subtitle><author><name>HBeale</name></author><entry><title type="html">build the SUGP1 KD signature with splicedice</title><link href="https://hbeale.github.io/2025/01/21/splicedice.html" rel="alternate" type="text/html" title="build the SUGP1 KD signature with splicedice" /><published>2025-01-21T00:00:00+00:00</published><updated>2025-01-21T00:00:00+00:00</updated><id>https://hbeale.github.io/2025/01/21/splicedice</id><content type="html" xml:base="https://hbeale.github.io/2025/01/21/splicedice.html"><![CDATA[<p>background, see [[run splicedice on SUGP1 KD signature with splicedice]] for splicedice steps through “pairwise”</p>

<p>raksha called these “reference”
SRR12801019
SRR12801023</p>

<p>she called these “sample”
SRR12801020
SRR12801024</p>

<h1 id="connect-to-server">connect to server</h1>
<p>log into prism vpn
ssh ubuntu@10.50.100.135</p>

<pre><code>cd /mnt/code/dennisrm_splicedice
git clone https://github.com/dennisrm/splicedice.git
sig=/mnt/code/dennisrm_splicedice/splicedice/code/signature.py
</code></pre>

<pre><code>cd /mnt/code/rakshya_RBPSig
git clone https://github.com/codewithrakshya/RBPSig
</code></pre>

<pre><code>cd /mnt/code/rakshya_RBPSig/RBPSig
python ./filter_data.py --output-prefix /mnt/output/splicedice_2024.12.19_23.40.49/
</code></pre>

<p>iterating</p>
<pre><code>python3 ./filter_data.py --output-prefix /mnt/output/splicedice_2024.12.19_23.40.49/
pip3 install pandas
sudo apt install python3-pandas
sudo apt install python3-argparse
python3 ./filter_data.py --output-prefix /mnt/output/splicedice_2024.12.19_23.40.49/

python3 ./filter_data.hcb.py --output-prefix /mnt/output/splicedice_2024.12.19_23.40.49/

</code></pre>

<p>errors addressed</p>
<pre><code>Traceback (most recent call last):
  File "/mnt/code/rakshya_RBPSig/RBPSig/./filter_data.py", line 10, in &lt;module&gt;
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'

</code></pre>

<pre><code>ubuntu@hbeale-mesa:/mnt/code/rakshya_RBPSig/RBPSig$ pip3 install pandas
error: externally-managed-environment

× This environment is externally managed
╰─&gt; To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

</code></pre>

<pre><code> cp ./filter_data.py ./filter_data.hcb.py
nano ./filter_data.hcb.py
# changed _pairwiseFisherResults.tsv to pairwise.tsv
</code></pre>
<p>copied ./filter_data.py to ./filter_data.hcb.py
changed pairwiseFisher
to pairwise</p>

<p>ran without error:</p>
<pre><code>ubuntu@hbeale-mesa:/mnt/code/rakshya_RBPSig/RBPSig$ python3 ./filter_data.hcb.py --output-prefix /mnt/output/splicedice_2024.12.19_23.40.49/
Filtered data saved to /mnt/output/splicedice_2024.12.19_23.40.49/_filteredPairwiseResults.tsv
Filtered _allPS data saved to /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv
</code></pre>

<h1 id="signaturepy">signature.py</h1>
<h2 id="attempt-1">attempt 1</h2>
<pre><code>cd /mnt/output/splicedice_2024.12.19_23.40.49
python3 /mnt/code/dennisrm_splicedice/splicedice/code/signature.py \
fit_beta \
-x significance_threshold=0.05 \
-p /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv \
-n 10 \
-m  /mnt/output/splicedice_2024.12.19_23.40.49/_manifest.txt \
-o test

</code></pre>

<pre><code>ModuleNotFoundError: No module named 'statsmodels'
</code></pre>

<pre><code>sudo apt install python3-statsmodels
</code></pre>

<p>consider also numpy
scipy.stats</p>

<p>tools
warnings
config</p>

<h2 id="attempt-2">attempt 2</h2>

<pre><code>cd /mnt/output/splicedice_2024.12.19_23.40.49
python3 /mnt/code/dennisrm_splicedice/splicedice/code/signature.py \
fit_beta \
-x significance_threshold=0.05 \
-p /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv \
-n 10 \
-m  /mnt/output/splicedice_2024.12.19_23.40.49/_manifest.txt \
-o test

</code></pre>

<p>error when no sig intervals</p>
<pre><code>ubuntu@hbeale-mesa:/mnt/output/splicedice_2024.12.19_23.40.49$ python3 /mnt/code/dennisrm_splicedice/splicedice/code/signature.py fit_beta -x significance_threshold=0.05 -p /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv -n 10 -m  /mnt/output/splicedice_2024.12.19_23.40.49/_manifest.txt -o test
significance_threshold=0.05
try
Testing for differential splicing...
Groups: /mnt/output/splicedice_2024.12.19_23.40.49/_junction_beds/SRR12801019_Aligned.sortedByCoord.out.junc.bed (1), /mnt/output/splicedice_2024.12.19_23.40.49/_junction_beds/SRR12801020_Aligned.sortedByCoord.out.junc.bed (1), /mnt/output/splicedice_2024.12.19_23.40.49/_junction_beds/SRR12801023_Aligned.sortedByCoord.out.junc.bed (1), /mnt/output/splicedice_2024.12.19_23.40.49/_junction_beds/SRR12801024_Aligned.sortedByCoord.out.junc.bed (1)
Fitting beta distributions...
Traceback (most recent call last):
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 425, in &lt;module&gt;
    main()
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 87, in main
    beta_stats = manifest.fit_betas(ps_table,compare_stats)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 328, in fit_betas
    interval_set = self.significant_intervals(compare_stats)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 303, in significant_intervals
    for i in range(m): # error when no sig intervals
                   ^
UnboundLocalError: cannot access local variable 'm' where it is not associated with a value
ubuntu@hbeale-mesa:/mnt/output/splicedice_2024.12.19_23.40.49$ 

</code></pre>

<p>review input</p>

<p>/mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv - looks fine; there are differences</p>
<pre><code>16:16317777-16317895:+  0.726   0.432   0.736   0.408
16:16317777-16318922:+  0.024   0.145   0.011   0.16
16:16317777-16358956:+  0.0     0.003   0.0     0.003

</code></pre>
<h3 id="fix-manifest">fix manifest</h3>
<p>i think the problem is the manifest. it should be a new one something  like this
SRR12801019	Reference
SRR12801023	Reference
SRR12801020	Sample
SRR12801024	Sample</p>

<pre><code> help="TSV file with list of samples (first column) and group labels (second column).")  
</code></pre>

<p>A19     A20     A23     A24</p>

<pre><code>cd /mnt/output/splicedice_2024.12.19_23.40.49
cp /mnt/code/rakshya_RBPSig/RBPSig/manifest.txt signature_manifest.txt
nano signature_manifest.txt
</code></pre>

<p>A19     control<br />
A23     control<br />
A20     SUGP1_knockdown
A24     SUGP1_knockdown</p>

<h3 id="attempt-3">attempt 3</h3>

<pre><code>cd /mnt/output/splicedice_2024.12.19_23.40.49
python3 /mnt/code/dennisrm_splicedice/splicedice/code/signature.py \
fit_beta \
-x significance_threshold=0.05 \
-p /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv \
-n 10 \
-m  /mnt/output/splicedice_2024.12.19_23.40.49/signature_manifest.txt \
-o test

</code></pre>

<pre><code>ubuntu@hbeale-mesa:/mnt/output/splicedice_2024.12.19_23.40.49$ cd /mnt/output/splicedice_2024.12.19_23.40.49
python3 /mnt/code/dennisrm_splicedice/splicedice/code/signature.py \
fit_beta \
-x significance_threshold=0.05 \
-p /mnt/output/splicedice_2024.12.19_23.40.49/_filteredAllPS.tsv \
-n 10 \
-m  /mnt/output/splicedice_2024.12.19_23.40.49/signature_manifest.txt \
-o test
significance_threshold=0.05
try
Testing for differential splicing...
Groups: control (2), SUGP1_knockdown (2)
Fitting beta distributions...
Traceback (most recent call last):
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 425, in &lt;module&gt;
    main()
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 87, in main
    beta_stats = manifest.fit_betas(ps_table,compare_stats)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 328, in fit_betas
    interval_set = self.significant_intervals(compare_stats)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/code/dennisrm_splicedice/splicedice/code/signature.py", line 303, in significant_intervals
    for i in range(m): # error when no sig intervals
                   ^
UnboundLocalError: cannot access local variable 'm' where it is not associated with a value
ubuntu@hbeale-mesa:/mnt/output/splicedice_2024.12.19_23.40.49$ 

</code></pre>]]></content><author><name>HBeale</name></author><category term="Other" /><summary type="html"><![CDATA[background, see [[run splicedice on SUGP1 KD signature with splicedice]] for splicedice steps through “pairwise”]]></summary></entry><entry><title type="html">A Moment on the Wonen’s Rugby Bandwagon</title><link href="https://hbeale.github.io/2025/01/18/name-frequency.html" rel="alternate" type="text/html" title="A Moment on the Wonen’s Rugby Bandwagon" /><published>2025-01-18T00:00:00+00:00</published><updated>2025-01-18T00:00:00+00:00</updated><id>https://hbeale.github.io/2025/01/18/name-frequency</id><content type="html" xml:base="https://hbeale.github.io/2025/01/18/name-frequency.html"><![CDATA[<p>I just watched the Bristol Bears play the Leicester Tigers in Premiership Rugby, England’s top division of rugby. 
I’m still getting the hang of the game, but it was a great game.</p>

<p>I looked at the Bristol Bears <a href="https://www.bristolbearsrugby.com/teams/womens-first-team/">roster</a>
to remind myself who the player of the game was (Holly Phillips), and noticed that
they have three Hollys on the team (OK, one is a Hollie).
As a Holly born in the 
<a href="https://engaging-data.com/baby-name-visualizer/?n=holl&amp;sex=f&amp;data=n">Holly heydey</a>,
that’s really surprising.
Sure, I was on a sports team with three other Hollys, but there are only 20% as many
Hollys now as there were back them.</p>

<hr />]]></content><author><name>HBeale</name></author><category term="Other" /><summary type="html"><![CDATA[I just watched the Bristol Bears play the Leicester Tigers in Premiership Rugby, England’s top division of rugby. I’m still getting the hang of the game, but it was a great game.]]></summary></entry></feed>