Thursday, November 5, 2015
[Mac] How to lock screen/turn off display without shutting down
control + shift + eject
How to import/sync your iphone/apple contacts to gmail/google voice/google account
1. log on to icloud, select contacts app
https://www.icloud.com/#contacts
2. click the gear button at left botton and choose 'select all'
3. click the same gear button again and choose 'Export vCard'
4. save that file on your desktop
5. open Gmail page, click the triangle next to Gmail logo at top-left, select contacts
6. click 'import contacts... ' at left column
7. choose the file you saved from icloud.
That's it
https://www.icloud.com/#contacts
2. click the gear button at left botton and choose 'select all'
3. click the same gear button again and choose 'Export vCard'
4. save that file on your desktop
5. open Gmail page, click the triangle next to Gmail logo at top-left, select contacts
6. click 'import contacts... ' at left column
7. choose the file you saved from icloud.
That's it
Convert MOV to iMovie Supported MP4, DV or MOV
use iDealshare VideoGo to convert .mov to mp4
iMessage & group message not working?
You must have played Candy Crush and cheated !
Set the time back to Auto if you haven't done so.
And then go to settings and message, enable your imessage and group message.
After a while you can get some of your missing messages.
Candy Crush is devil!!!
How to build simlink on linux
Create symlink example.
1. Log in on the system.
2. Now issue ln -s command to instruct Linux to create symlink to a file, the example below we make a link (shortcut) that call dns that link to /etc/resolf.conf the configuration file that contain DNS server name for our Linux system.
[linux@fedora11 ~]$ ln -s /etc/resolv.conf dns
[linux@fedora11 ~]$
3. To verify that the our symlink or symbolic link created successfully, issue ll command or ls -l --color=auto
[linux@fedora11 ~]$ ll
total 32
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Desktop
lrwxrwxrwx. 1 linux linux 16 2010-04-25 17:37 dns -> /etc/resolv.conf
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Documents
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Download
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Music
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Pictures
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Public
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Templates
drwxr-xr-x. 2 linux linux 4096 2010-03-20 22:32 Videos
[linux@fedora11 ~]$
4. issue cat command to test our new symlink / symbolic link working perfectly. Note that dns is symlink to /etc/resolf.conf configuration file.
[linux@fedora11 ~]$ cat dns
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.228.2
[linux@fedora11 ~]$
Read more on Linux symbolic link, Windows shortcut and Windows symbolic link, to know the different between them.
Keywords: linux create symlink, linux create symbolic link, create syslink, create symbolic link, create linux symlink, create linux symbolic link, create symlink linux, create symbolic link linux
SAMTOOLS SAMFILE tags
SAM format summary
The Sequence Alignment/Map (SAM) format is a generic alignment format for storing read alignments against reference sequences. It is a text format for storing sequence data in a series of tab delimited ASCII columns and is commonly used in next-generation sequencing data processing. It is the (non-binary) human-readable version of the BAM format and contains information about the read and the aligned position in the genome. It was developed by Heng Li in Richard Durbins group and others, their paper is here.
After a header section the alignment section describes all results of the aligned read data. The format is best explained with an example line:
Code
1:497:R:-272+13M17D24M 113 1 497 37 37M 15 100338662 0 CGGGTCTGACCTGAGGAGAACTGTGCTCCGCCTTCAG 0;==-==9;>>>>>=>>>>>>>>>>>=>>>>>>>>>> XT:A:U NM:i:0 SM:i:37 AM:i:0 X0:i:1 X1:i:0 XM:i:0 XO:i:0 XG:i:0 MD:Z:37 |
Fieldname description Example-data QNAME read name 1:497:R:-272+13M17D24M FLAG alignment flag 113 RNAME alignment chromosome 1 POS alignment start position 497 MAPQ overall mapping quality 37 CIGAR alignment CIGAR string 37M MRNM/RNEXT name of next alignm. in group (mate) 15 MPOS/PNEXT pos. of next alignm. in group (mate) 100338662 ISIZE/TLEN observed Template LENgth 0 SEQ sequence CGGGTCTGACCTGAGGAGAACTGTGCTCCGCCTTCAG QUAL quality per base 0;==-==9;>>>>>=>>>>>>>>>>>=>>>>>>>>>> TAGs further tags with alignment info XT:A:U NM:i:0 SM:i:37 AM:i:0 X0:i:1 X1:i:0 XM:i:0 XO:i:0 XG:i:0 MD:Z:37
The tags are optional and might vary between alignment programs. Shown are examples from BWA. Important for filtering are usually the tags X0:i (numbers of genome alignments of this read) and XM:i (number of mismatches in alignment).
Tag Meaning
NM Edit distance
MD Mismatching positions/bases
AS Alignment score
BC Barcode sequence
X0 Number of best hits
X1 Number of suboptimal hits found by BWA
XN Number of ambiguous bases in the referenece
XM Number of mismatches in the alignment
XO Number of gap opens
XG Number of gap extentions
XT Type: Unique/Repeat/N/Mate-sw
XA Alternative hits; format: (chr,pos,CIGAR,NM;)*
XS Suboptimal alignment score
XF Support from forward/reverse alignment
XE Number of supporting seeds
The read name (at least from Illumina machines) are constructed as:
[instrument-name]:[run ID]:[flowcell ID]:[lane-number]:[tile-number]: [x-pos]:[y-pos] [read number]:[is filtered]:[control number]: [barcode sequence]
example:
@M01117:25:000000000-A37B9:1:1101:14984:1386 1:N:0:4
How to kill process on Linux
lsof +D RNA-SeQC to list the running programs on this folder
I got
lsof: WARNING: can't stat() nfs file system /mmjggl/packrat/data00
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 23583 phe 18r REG 0,59 23365603 32063 RNA-SeQC/.nfs0000000000007d3f0000106d
java 23583 phe 35w REG 0,59 4091782 32164 RNA-SeQC/ExpoNoTrim/highexpr/.nfs0000000000007da40000106e
kill 23583
Subscribe to:
Posts (Atom)