#!/bin/bash script_path=$(dirname `realpath $0`) outdir="." database_dir=/Business/psn_company/Work/Transcriptome/Datum/Public/Database/genome_prepare usage() { cat < $outdir/gid_tid perl $script_path/protein2geneid.pl $outdir/gid_tid $outdir/cds.tid.fa > $outdir/cds.gid.fa perl $script_path/get_longseq.pl $outdir/cds.gid.fa > $outdir/cds.fa rm -f $outdir/cds.gid.fa $outdir/gid_tid $outdir/cds.tid.fa perl $script_path/gtf2id_table.pl $gtf > $outdir/id_table.txt org=`awk -F"\t" '$2=="'$name'"{print $1}' $script_path/kegg_org_species_taxid.txt ` kindom=`awk -F"\t" '$1=="'$taxid'"{print $2}' $script_path/taxid_division.txt ` if [ -z "$kindom" ] then echo "物种分类不在NCBI taxid;请手动填写配置文件的kindom 和org" elif [ -z "$org" ] then org=$kindom fi cat > $outdir/genome_conf.ini<