User: shenwei356

gravatar for shenwei356
shenwei3563.6k
Reputation:
3,650
Status:
Trusted
Location:
China
Website:
http://shenwei.me/
Twitter:
shenwei356
Scholar ID:
Google Scholar Page
Last seen:
an hour ago
Joined:
6 years, 1 month ago
Email:
s*********@gmail.com

Posts by shenwei356

<prev • 438 results • page 1 of 44 • next >
1
vote
4
answers
104
views
4
answers
Comment: C: Parsing dataframe and sort a fasta file
... for id in seq1_id: if id in record_dict_sp1_aa: # output record_dict_sp1_aa[id] pass elif id in record_dict_sp2_aa: # output record_dict_sp2_aa[id] pass else: # reporting a id not in any files for id in seq2 ...
written 4 days ago by shenwei3563.6k
0
votes
4
answers
104
views
4
answers
Comment: C: Parsing dataframe and sort a fasta file
... Bad logic. You need to iterate seq1_id and seq2_id separately. ...
written 4 days ago by shenwei3563.6k
0
votes
4
answers
104
views
4
answers
Comment: C: Parsing dataframe and sort a fasta file
... I've just updated the answer. > You've finished half the code, next step is just iterating the seq1_id and check if one id exists in any of record_dict_sp1_aa or record_dict_sp2_aa and printing the result. ...
written 4 days ago by shenwei3563.6k
1
vote
4
answers
104
views
4
answers
Answer: A: Parsing dataframe and sort a fasta file
... You've finished half the code, next step is just iterating the `seq1_id` and check if one id exists in any of `record_dict_sp1_aa` or `record_dict_sp2_aa` and printing the result. ---- Actually, there's no need to write scripts. ``` # concat two files cat f1.fasta f2.fasta > all.fasta # exp ...
written 4 days ago by shenwei3563.6k
3
votes
2
answers
122
views
2
answers
Answer: A: Combining different tasks in one line of code in terminal
... Take a look at [csvtk](https://github.com/shenwei356/csvtk), a cross-platform, efficient and practical CSV/TSV toolkit in Golang. It provides many subcommands for lots of csv/tsv manipulations: - `csvtk xlsx2csv` ([usage](http://bioinf.shenwei.me/csvtk/usage/#xlsx2csv)), convert .xlsx (not .xls) to ...
written 5 days ago by shenwei3563.6k
8
votes
1
answer
154
views
1
answers
Answer: C: Cross out line in Biostars
... ``` deleted ``` deleted ...
written 6 days ago by shenwei3563.6k
1
vote
4
answers
130
views
4
answers
Answer: A: How to extract specific rows based on row number from a file
... I try to use `cat -n` to show print number, then `grep -w -f`. $ cat -n data.tsv | sed -r 's/^\s+//' 1 gene Sample1 Sample2 Sample3 2 A1BG 5658 5897 6064 3 AURKA 3656 3484 3415 4 AURKB 9479 10542 9895 $ cat -n data.tsv | se ...
written 6 days ago by shenwei3563.6k
0
votes
6
answers
292
views
6
answers
Comment: C: changing the name of files
... Right, it detects potential conflicts (overwriting existed paths and overwriting newly renamed path) and errors (blank target). ...
written 6 days ago by shenwei3563.6k
0
votes
6
answers
292
views
6
answers
Comment: C: changing the name of files
... Sorry for my carelessness, it's fixed. ...
written 6 days ago by shenwei3563.6k
1
vote
6
answers
292
views
6
answers
Answer: A: changing the name of files
... ---- corrected answer---- Try [brename](https://github.com/shenwei356/brename), a practical cross-platform command-line tool for safely batch renaming files/directories via regular expression. $ brename -p "(\d+)_(\d+)_clean" -r "_\$1.R\$2" [INFO] checking: [ ok ] 'ALT1_1_clean.fq.gz' -> ...
written 6 days ago by shenwei3563.6k

Latest awards to shenwei356

Teacher 5 days ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 5 days ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Good Answer 6 days ago, created an answer that was upvoted at least 5 times. For A: Bioinformatics software distribution
Appreciated 6 days ago, created a post with more than 5 votes. For C: Inserting delim between numbers and strings in bash
Scholar 6 days ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Teacher 6 days ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Teacher 17 days ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 3 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Popular Question 3 months ago, created a question with more than 1,000 views. For csvtk - a cross-platform, efficient, practical and pretty CSV/TSV toolkit
Appreciated 5 months ago, created a post with more than 5 votes. For C: Inserting delim between numbers and strings in bash
Teacher 6 months ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 8 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Scholar 8 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Teacher 11 months ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 11 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Scholar 11 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Teacher 11 months ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Teacher 11 months ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 12 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Teacher 12 months ago, created an answer with at least 3 up-votes. For A: single line fasta to mult line fasta
Scholar 12 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Scholar 12 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Scholar 12 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus
Scholar 12 months ago, created an answer that has been accepted. For A: looking for 16S RNA sequence consensus

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1969 users visited in the last hour