Thursday, December 15, 2022

Remove search.4jyj.com malicious extension from Firefox and Chrome

4jyj is a malicious extension in Firefox and Chrome browser that hijacks the search engine, and redirects to yahoo.com when you search in Google. It also modifies your default search engine setting to something like DominantPartition. It cannot be removed by simply uninstalling any extension.

The following script shows how to find files 

The string with numbers can be different on different systems. 

cd ~/Library/Application\ Support/
sudo find  . -name "*DominantPartition*"
sudo rm -rf ./.1047632777245170349/Services/com.DominantPartition.service ./.1047632777245170349/Services/com.DominantPartition.service/DominantPartition.service
 

cd ~/Library/LaunchAgents/
rm -rf com.DominantPartition.service.plist
cd /Library/Application\ Support/
sudo find  . -name "*DominantPartition*"
sudo rm -rf ./.1047632777245170349/System/com.DominantPartition.system ./.1047632777245170349/System/com.DominantPartition.system/DominantPartition.system


cd /Library/LaunchDaemons/
sudo rm -rf com.DominantPartition*




Tuesday, December 02, 2014

Short comments on Nature's new open-access initiative

Nature announces a new open-initiative that allows any subscriber individuals and institutions to share a public-access link to Nature articles (http://www.nature.com/press_releases/share-nature-content.html).

It is a good, but small, step forward, although the intention of Nature is still to maximize their revenues from subscription business.

I would also encourage all authors to "self-archiving" their papers / manuscripts on their personal or institutional websites, which will make their work widely available and promote open access. The six-month limitation of Nature only applies to the finalized version, and it is legal to self archive the original manuscripts any time at the authors' wish (http://www.eprints.org/openaccess/self-faq/#self-archiving-legal).

Tuesday, March 18, 2014

Using UCSC Genome Browser Sessions to Organize and View MethBase Tracks

I would like to share a tip that uses the UCSC Genome Browser Sessions to organize and view MethBase tracks.

As of 03/18/2014, MethBase contains 2294 tracks, including tracks for methylation levels, read depths, HMRs, etc. For human alone, there are 1130 tracks. Since each one may be interested in different set of samples and different selection of features, and want to display them with specific settings, there is no single setting that satisfies everyone. Fortunately, the UCSC Genome Browser Sessions provides a nice feature for you to 1) manually tailor a set of tracks (e.g., brain related), 2) store them for future re-use, and 3) share them with others. With UCSC Genome Browser, each one will have a "personalized" view of MethBase.

Using the Session feature requires you to create an account with UCSC Genome Browser and is quite straightforward (http://genome.ucsc.edu/goldenPath/help/hgSessionHelp.html). For example, here is a UCSC browser session that contains high coverage methylomes of normal cell samples from human (link).

Hopefully, more interesting and useful sessions, such as brain development oriented and cancer oriented, will be created and shared.

Wednesday, January 29, 2014

A Survey of Commercial Providers of Whole Genome Bisulfite Sequencing Services

These days I am working on an NIH proposal that involves whole genome bisulfite sequencing (WGBS). For the purpose of project budgeting, I surveyed several commercial providers of WGBS. The following list of companies provide WGBS service, including library preparation and high through sequence with Illumina machines. Most of them also provide additional bioinformatics service as well. Our project only requires library preparation and sequencing services, the quote from the lowest to highest are: BGI < SeqWright < NXT-dx < Glocal Biologics < Alpha Biolaboratory < ACGT. Illumia only offers service if the desired coverage of a single sample is above 30x, and I have not heared back
from Zymo Research yet.

Tuesday, December 10, 2013

A Reference Methylome Database and Analysis Pipeline to Facilitate Integrative and Comparative Epigenomics

Original link: http://www.plosone.org/article/info:doi/10.1371/journal.pone.0081148
 
DNA methylation is implicated in a surprising diversity of regulatory, evolutionary processes and diseases in eukaryotes. The introduction of whole-genome bisulfite sequencing has enabled the study of DNA methylation at a single-base resolution, revealing many new aspects of DNA methylation and highlighting the usefulness of methylome data in understanding a variety of genomic phenomena. As the number of publicly available whole-genome bisulfite sequencing studies reaches into the hundreds, reliable and convenient tools for comparing and analyzing methylomes become increasingly important. We present MethPipe, a pipeline for both low and high-level methylome analysis, and MethBase, an accompanying database of annotated methylomes from the public domain. Together these resources enable researchers to extract interesting features from methylomes and compare them with those identified in public methylomes in our database.

Examples of high-level methylation features available in MethBase through the UCSC Genome Browser track hub.

Wednesday, December 04, 2013

Convert PDF files to high quality PNG figures

To display figures on your website, it is necessary to convert PDF files to image files in PNG format. However, the conversion sometimes results in low-quality figures, especially if there are texts in the PDF original files. Below are the procedures I used to convert PDF files to high-quality PNG files. It includes two step:

1. use Preview to convert PDF files to PNG files
Open your pdf file with Preview on Mac OS. Click File->Export. Select PNG from the Format field. Below the Format selector, there is a text box Resolution, which is the key to preserve high quality. Make sure to input quite high number, say 300 pixel/inch. Click Save. This produces a png file of high quality

2. use OptiPNG to reduce PNG file size
The PNG file from the above step is usually quite big, which may make your website slow to load. The OptiPNG (http://optipng.sourceforge.net/) program can used to reduce file size. With the default settings, it is able to reduce the png file size by half without perceptible loss in image quality.

You may see a PNG figure produced with the above procedure in my MethPipe website (http://smithlab.usc.edu/methpipe/).


Tuesday, August 20, 2013

Add trunk/tags/branches directories to an existing SVN repository

In a standard SVN repository, the top level directory is the project directory, which contains three subdirectories: trunk, tags and branches (SVN Best Practices). Most time, you actively work and update the trunk directory. When you release a new version, you may take a snapshot of the trunk directory by copying the trunk directory to tags. The branches directory is where you may try out some new ideas.

Occasionally, you may have a svn repository that does not follow the recommend layout, probably because it seemed not worth the efforts when you first start that toy-like project. However as developments continue, that repository may have lots of commits, and you found it much convenient if there are the trunk/tags/branches layout (for example, link). Here I will give a step-by-step tutorial.

First, we need to dump the old repository with svnadmin, and then create a new clean repository.
svnadmin dump /srv/svn/repos/test > test-repo.dump
mv /srv/svn/repos/test /srv/svn/repos/test-backup
svnadmin create /srv/svn/repos/test
Next, check out the clean repository, and add trunk, tags, and branches directories.
svn checkout PATH-TO-TEST-REPO
cd test
svn mkdir trunk tags branches
svn ci  trunk tags branches -m "add trunk tags branches structure"
Finally, load the previous repository dump into the trunk subdirectory. Note, the --parent-dir is essential.
svnadmin load  /srv/svn/repos/test --parent-dir  trunk < test-repo.dump
Done!