Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
STR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anne-Sophie Denommé-Pichon
STR
Commits
ca5d565b
Commit
ca5d565b
authored
Dec 15, 2019
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script to get STR tools results at the fragile X locus
parent
4386a668
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
getFMR1result.sh
getFMR1result.sh
+38
-0
No files found.
getFMR1result.sh
0 → 100755
View file @
ca5d565b
#! /bin/sh
### ASDP PIPELINE ###
## pipeline.sh
## Version : 0.0.1
## Licence : FIXME
## Description : script to get automatically results from pipeline.sh script in a tsv format on the FMR1 X fragile locus
## Usage :
## Output : FIXME
## Requirements : FIXME
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date : 20191215
## last revision date : 20191215
## Known bugs : None
cd
/work/gad/shared/analyse/STR/pipeline/
(
echo
-e
'dijenxxx\tEH\tTred\tGangSTR'
ls
-d
dijen
*
|
while
read
dijen
do
(
echo
"
$dijen
"
awk
'$1 == "chrX" && $2 == "146993568" {print $5}'
$dijen
/eh/
$dijen
.vcf |
sed
's@<STR\([0-9]\+\)>@\1@g'
gunzip
-c
$dijen
/tredparse/
$dijen
.tred.vcf.gz |
awk
'$1 == "chrX" && $2 == "146993569" && $3 == "FXS" {print $8}'
|
tr
';'
'\n'
|
awk
-F
'='
'$1 == "RPA" {print $2}'
awk
'$1 == "chrX" && $2 == "146993569" {print $9 " " $10}'
$dijen
/gangstr/
$dijen
.vcf |
python3
-c
'import sys; format, genotype = sys.stdin.read().split(); print(genotype.split(":")[format.split(":").index("REPCN")]) if genotype != "." else print(".")'
)
|
tr
'\n'
'\t'
echo
done
)
>
results
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment