## A2 vs At 的intronR库makeblastdb-dbtypenucl-inA2_At.fa-outA2_Atmakeblastdb-dbtypenucl-inD5_Dt.fa-outD5_Dt#区分At、Dtgrep"Ghir_A"-A14|sed'/^--/d'>At4##比对blastn-queryA2_At.fa-dbA2_At-evalue1e-5-num_threads2-outfmt'6 qseqid sseqid qstart qend sstart send nident pident qcovs evalue bitscore'-outA2_At.blastblastn-queryD5_Dt.fa-dbD5_Dt-evalue1e-5-num_threads2-outfmt'6 qseqid sseqid qstart qend sstart send nident pident qcovs evalue bitscore'-outD5_Dt.blastsed-i's/\.v2\.1//g'D5_Dt.blast## 得到保守的ASpython~/scripte/Alternative/module/homologBlast.py-homolog~/work/Alternative/result/homologo/homologGene/A2_vs_At_collinearity.txt-BlastA2_At.blast-o222python~/scripte/Alternative/module/homologBlast.py-homolog~/work/Alternative/result/homologo/homologGene/D5_vs_Dt_collinearity.txt-BlastD5_Dt.blast-o222python~/scripte/Alternative/module/homologBlast.py-homolog~/work/Alternative/result/homologo/homologGene/A2_vs_D5_collinearity.txt-BlastA2_D5.blast-o222python~/scripte/Alternative/module/homologBlast.py-homolog~/work/Alternative/result/homologo/homologGene/At_vs_Dt_collinerity.txt-BlastAt_Dt.blast-o222##多个AS时得到最保守的AS# A2 vs Atcat222|awk'$1~/^evm/&&$2~/^Gh/{print $0}$1~/^Gh/&&$2~/^evm/{print $2,$1,$3}'OFS="\t"|sort|uniq|awk'{print $2,$3,$1}'OFS="\t"|sort-k3-k2,2nr|uniq-f2|awk'{print $3"\t"$2"\t"$1}'|sort-k3-k2,2nr|uniq-f2>A2_At_conserve_end#D5 vs Dtcat222|awk'$1~/^Gor/&&$2~/^Gh/{print $0}$1~/^Gh/&&$2~/^Gor/{print $2,$1,$3}'OFS="\t"|sort|uniq|awk'{print $2,$3,$1}'OFS="\t"|sort-k3-k2,2nr|uniq-f2|awk'{print $3"\t"$2"\t"$1}'|sort-k3-k2,2nr|uniq-f2>D5_Dt_conserve_end# A2 vs D5cat222|awk'$1~/^evm/&&$2~/^G/{print $0}$1~/^Go/&&$2~/^evm/{print $2,$1,$3}'OFS="\t"|sort|uniq|awk'{print $2,$3,$1}'OFS="\t"|sort-k3-k2,2nr|uniq-f2|awk'{print $3"\t"$2"\t"$1}'|sort-k3-k2,2nr|uniq-f2>A2_D5_conserve_end#At vs Dtcat222|awk'$1~/^Ghir_A/&&$2~/^Ghir_D/{print $0}$1~/^Ghir_D/&&$2~/^Ghir_A/{print $2,$1,$3}'OFS="\t"|sort|uniq|awk'{print $2,$3,$1}'OFS="\t"|sort-k3-k2,2nr|uniq-f2|awk'{print $3"\t"$2"\t"$1}'|sort-k3-k2,2nr|uniq-f2>At_Dt_conserve_end
同源基因间AS event数目统计
统计剪切事件在同源基因间发生的次数
#A2 vs Atpython~/scripte/Alternative/module/homologASeventCount.py-homolog~/work/Alternative/result/homologo/homologGene/A2_vs_At_collinearity.txt-AS1~/work/Alternative/result/homologo/A2/end_third-AS2~/work/Alternative/result/homologo/TM-1/end_third-TIntronR-oA2_At_IR# D5 vs Dtpython~/scripte/Alternative/module/homologASeventCount.py-homolog~/work/Alternative/result/homologo/homologGene/D5_vs_Dt_collinearity.txt-AS1~/work/Alternative/result/homologo/D5/end_third-AS2~/work/Alternative/result/homologo/TM-1/end_third-TIntronR-oD5_Dt_IR##最后统一去重tmp=`mktemp`for i in`ls./`; dosort ${i}|uniq>${tmp} &&cp ${tmp} ${i}; done
for i in`ls./homologeventStatic`; doawk'$2>0&&$4>0{print $0}'./homologeventStatic/${i} >./consevePairegenes/${i}; done##对应的事件数目for i in`ls./`doprintf $i"\t"awk'{a+=$2+$4}END{print a}' ${i}done##保守的基因对和事件数目