Showing posts with label HCV. Show all posts
Showing posts with label HCV. Show all posts

Wednesday, April 20, 2011

HCV teleconference

I had a short meeting and it was very productive. It seems that there are about ~80-100 sequences where they have quantitative infectivity data. I'll see how the data looks when I get it. The main caveate is that they are subgenomic replicon. I have found a large scale random insertion functional genomic screen ... i'll have to see how it looks.

Wednesday, March 30, 2011

Started running all Linkage Files

Using the new --do-all argument I started running all new linkage using sha: 223e3a69d6e6715ffaaf1e3ffd410aa2cc9d70c5

This will do all tree-calculating, merging, linking, and aggregating.

Thursday, March 17, 2011

TopN predictive positions in HCV

These are the topN predictive positions for various subtypes (ranked by number of predictive positions):
Subtype 3a:

    'E2'    [ 95]
    'E2'    [  2]
    'E1'    [213]
    'E2'    [222]
    'E2'    [ 93]
    'E2'    [212]

Subtype 2a:

    'E2'    [  2]
    'E2'    [109]
    'E2'    [  1]
    'E2'    [226]
    'E2'    [225]
    'P7'    [ 20]

Subtype 1a:

    'E2'     [  2]
    'E2'     [ 85]
    'E2'     [187]
    'E2'     [  1]
    'E2'     [  6]
    'E2'     [180]
    'E2'     [176]
    'E2'     [ 83]
    'E2'     [ 82]
    'E2'     [186]
    'E2'     [ 16]
    'E1'     [ 43]
    'E2'     [245]
    'P7'     [ 20]
    'E2'     [175]
    'NS2'    [119]
    'E1'     [105]
    'NS2'    [  2]
    'P7'     [ 26]
    'NS2'    [ 29]

As you can see the positions are "similar" and there are some overlaps.

HCV results for other genotypes

The results posted before were for genotype 1a ... that was chosen arbitrarily since I don't really know much about HCV epidemiology.

Here are the corresponding figures for genotype 2a


and for subtype 3a:


I really don't see any difference between these figures ... but when I look at the actual numbers I can see that the conserved columns are off by a few AAs.  In genotype 3a there is an extra predictive column in E1 that is not present in the others. There is also a "double-wide" single AA linkage in E2 (the last column in E2) ... in the other genotypes it reduces to a single column but in 3a there are actually 2 positions.

I'll post the predictive positions later this afternoon.

Wednesday, March 16, 2011

Paper to check for agreement with HCV linkage work

I came across this paper while looking for some HCV genome linkage studies: Comparative analysis of nearly full-length hepatitis C virus quasispecies from patients experiencing viral breakthrough during antiviral therapy: clustered mutations in three functional genes, E2, NS2, and NS5a
This shows that there are some PAIRS of mutations which lead to viral breakthroughs but the single mutations have no noticeable effect. They use a different reference strain so their positions aren't immediately comparable to mine but I have checked and their reference is in my alignments ... so I'll just need to do a simple conversion to check it out.

Friday, March 11, 2011

Sequence-space figures

So I've normalized the figures to be in "sequence-space" instead of alignment space ... all positions were normalized to the AF054250 sequence (it would be trivial to change this).
and
This cleaned things up relatively well ... although there are still large chunks of un-measured space ... but these are due to the low-entropy cutoff, not sure there's much I can do about that one :(. The only thing I can think of to fix this would be too allow a window to grow indefinitely if its below the entropy cutoff ... right now if the "conserved window" is greater than 5 AAs then I just skip past it. While this would fix my problem I'm not sure it is worth the time it would take to re-compute everything (and it wouldn't add much biological significance).

I could take the adjacent values (since if I allowed the window to extend it would be the same as the adjacent value).  When I do that I get this:
Which looks pretty bad ... and misleading. Since this seems to imply that whole genome can be predicted from any other part with at least 70% accuracy. Which is NOT true ... if you were given one of those low-entropy regions (without the nearby AAs) you'd be out of luck.

An "image" version of the HCV linkage data

So i used imagesc to create a new representation of the linkage data:
This has quite a bit of a difference between the scatter-plot I made yesterday ... reposted here:
As you can see ... in the scatter figure it seems that E1 and E2 have the highest levels of predictive power. While in the image figure it seems that the NS3-NS5A has the majority of predictive power.

There is a simple reason for the dis-congruity ... the scatter-plot shows SINGLE AA linkages while the image figure shows MULTIPLE AA linkages. So it would seem that the linkage between NS3/NS5 with the rest of the genome only occurs at the "motif" level while the linkage between E1/E2 occurs at the single AA level.

You can see the small spikes in the area plot below the image figure that correspond to the spikes in the scatter figure. However they are drastically overshadowed by the other linkages around them.

I'm not sure of the biological significance but I saw a similar effect in the HIV data ... just never made it into the most recent version of the manuscript.

The thing that really bugs me is the "white-space" in the image figure. This is mostly due to two things: low entropy cutoffs and multiple alignment issues. There's not much I can do to fix the low entropy regions ... I could cut those sections out of the figure but that would make it weirdly distorted. I'm hoping by converting from "alignment-space" to "sequence-space" will clean up some of these issues.

Thursday, March 10, 2011

HCV Circos and Scatter figures

Alrighty, now that I've fixed the "giant png" figure problem I can post and discuss some of figures I've created. First: the scatter figure ... as mentioned before this is all SINGLE matches of 1.0 linkage.
Scan see that the E2 region has a lot of predictive power. as evidenced by the thick column of predictions in the third group (it may only look like the second but Core is very small). The P7 region also has quite a bit of predictive power.  This is currently in "alphabetical order" of the genes ... when I re-order it:
Things make much more sense. Now the predictive regions are grouped together.

The circos diagram shows the same basic results except in a more visually appealing way.  However, I'm having trouble posting it here ... probably a size issue. Despite converting it to a JPG at 5% quality its still over 2 mb.

The interesting thing will be what is the position which has that high prediction level. So in this poorly labeled histogram ... its just a quick one I'll do a better one tomorrow, just want a general idea:
You could guess that the E2 position: 176 (alignment-space) is that large spike and the second largest is at E1 475 (also alignment-space) ... I will have to do a little work tomorrow to convert these to sequence space.

I'm going to spend some time tomorrow getting more information into the above figure ... perhaps using the "color" of each scatter point indicating the level of linkage ... the other strategy would be to use a pcolor plot. Also doing joint histogram/pcolor would be very helpful.


HCV circos figure

So far this looks like the best Circos plot I can generate. This has all SINGLE linkages with perfect linkage and the top 5000 links (although there are only ~1500 such linkages). All the rest have too many links and look kinda crummy.

Having trouble posting the actual image ... its about 19mb. Need to find a way to compress them properly.

Monday, March 7, 2011

HCV finally finished

The processing for the HCV linkage results finally finished sometime over the weekend. I'll put everything together sometime on Tuesday. Today I have to help grade senior design presentations and get a final exam ready.

Monday, February 28, 2011

HCV stuff still processing

The HCV stuff is still processing but it seems to be about 2/3rds done. Hopefully it will finish within a day or so.

Friday, February 25, 2011

Restarted HCV linkage

Things were taking too long on the HCV linkage and the p-values were "inconclusive". I changed the code so it won't calculate p-vals unless asked (otherwise it will just leave that column blank). I restarted the code on sha a792bca5d5d14506b83f1af96a0f0c3201a5c232 and command:
python AnalysisCode.py --link-lanl --data-dir HCVData/ --workers 3 --max-width 5

I'll create a function which can go back and recalculates the p-values.  I also need to deal with "inconclusive" p-values ... which I'm defining as permutation tests where I never (or only twice) find a value as good as the real value. In a set of 5000 iterations I don't have a good estimate.  So I think I'll refactor that function to keep testing until it finds 10 "good" values unless it gets to 100,000 iterations.  I'll probably have a minimum of 5000 just to make sure it doesn't get a "lucky break" and find those 10 early.

Thursday, February 24, 2011

Current ToDo and brainstorming

Here's a list of stuff I think I need to work on ... in rough priority order:

  • Get the Circos diagram setup for the HCV results before its done.
  • Setup the statistical look-up table ... this will require an appreciable amount of coding and a large amount of processing time.
  • Setup an enrichment score for linked proteins in bacterial genomes.
  • Find a better way of organizing the linkage data and making sure everything gets run at once. Now that I'm going to run the analysis on MANY bacterial genomes and comparing results together I need a better way to handle things. Perhaps setting up a YAML list file with the location of data and the parameters. Then I could just run a top-function which calls the resulting functions

Started HCV linkage code

started code on linkage analysis:
python AnalysisCode.py --link-lanl --data-dir HCVData/ --workers 3 -max-width 5
on code: a792bca5d5d14506b83f1af96a0f0c3201a5c232
So it will calculate single linkages between all pairs with a max-width of 5. It will also find linkage p-values for anything with a value greater than 80%.