Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cigar info in summary data #4

Open
jo-mc opened this issue Nov 28, 2020 · 0 comments
Open

update cigar info in summary data #4

jo-mc opened this issue Nov 28, 2020 · 0 comments

Comments

@jo-mc
Copy link
Owner

jo-mc commented Nov 28, 2020

update disbamer.sh to this:

read -r cigarD <<< "$(echo "$bamdata" | awk '{print $6}')"
cigArr=( $(grep -Eo '[[:digit:]]+|[^[:digit:]]+' <<<"$cigarD") )
cigCount="${#cigArr[@]}"
echo cigar " |- elements: $(( cigCount / 2 )) -| : " "${cigarD:0:50}" "...." "${cigarD:$(($ciglen-20)):20}." # cigar

removed length ${ciglen}, changed form byte length to number of cigar elements.

read -r seqD <<< "$(echo "$bamdata" | awk '{print $10}')"
echo sequence "|- bases: ${#seqD} -| : " "${seqD:0:50}" ".... " "${seqD:$((${#seqD}-20)):20}." # ${::} substring ${#} length of string var

echo "check_"$seqD"_check"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant