Friday, March 11, 2011

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.


Converting and shrinking PNG files

Here's a simple command to convert and down-sample PNG files so they aren't 18 mg monsters.
mogrify -quality 20 -format jpg *.png
This will convert all PNGs in the directory to jpg and reduces the quality to 20% of the original. I can't tell the difference at all.

It uses the mogrify command from the ImageMagik toolkit.

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.

Playing catch-up

Since I've been slow the past couple of weeks I need to spend the next few days playing catch-up ... which will probably include working through the weekend :(

So today I'm getting the HCV linkage circos diagrams together along with the scatter-plots. Now that the calculations are finished I should be able to get some figures together in the next few hours.

After that I need to do the GO linkage analysis for the Staph data and then find a good way to generalize it so I can run it on all of the finished genomes that I have downloaded.

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.

Thursday, March 3, 2011

Started a backup system

I started my own rsync-based backup system which mirrors data on my external drive and my Dropbox account. I've setup cron to do the incremental backups on a nightly bases. Currently I'm backing up the code and data for:

  • LinkageAnalysis
  • publookup
  • quick* projects
  • judosite
  • pyMutF