Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • xshang
    replied
    Originally posted by dpryan View Post
    Try
    Code:
    names(human_protein)[1]
    The names() function is an accessor for the names in the AAStringSet object and returns a character vector. Alternatively, you can also use
    Code:
    names(human_protein[1])
    The [ function also returns an AAStringSet, rather than an AAString (returned by [[).
    It works! Many thanks!

    Leave a comment:


  • dpryan
    replied
    Try
    Code:
    names(human_protein)[1]
    The names() function is an accessor for the names in the AAStringSet object and returns a character vector. Alternatively, you can also use
    Code:
    names(human_protein[1])
    The [ function also returns an AAStringSet, rather than an AAString (returned by [[).

    Leave a comment:


  • xshang
    started a topic How can I extract sequence name from fast file in R

    How can I extract sequence name from fast file in R

    Here is my code:
    Code:
    setwd("/Users/xshang/Dropbox/project-ing/peptidome")
    library("Biostrings")
    human_protein <- readAAStringSet("HUMAN.fasta",use.names=TRUE)
    When I use
    Code:
    names(human_protein[[1]])
    , it returns "NULL". How can I extract sequence name from fast file in R?

    Thanks!

Latest Articles

Collapse

  • seqadmin
    Multiomics Techniques Advancing Disease Research
    by seqadmin


    New and advanced multiomics tools and technologies have opened new avenues of research and markedly enhanced various disciplines such as disease research and precision medicine1. The practice of merging diverse data from various ‘omes increasingly provides a more holistic understanding of biological systems. As Maddison Masaeli, Co-Founder and CEO at Deepcell, aptly noted, “You can't explain biology in its complex form with one modality.”

    A major leap in the field has
    ...
    02-08-2024, 06:33 AM
  • seqadmin
    The 3D Genome: New Technologies and Emerging Insights
    by seqadmin


    The study of three-dimensional (3D) genomics explores the spatial structure of genomes and their role in processes like gene expression and DNA replication. By employing innovative technologies, researchers can study these arrangements to discover their role in various biological processes. Scientists continue to find new ways in which the organization of DNA is involved in processes like development1 and disease2.

    Basic Organization and Structure
    Understanding...
    01-22-2024, 03:25 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Today, 08:57 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 02-14-2024, 09:19 AM
0 responses
42 views
0 likes
Last Post seqadmin  
Started by seqadmin, 02-12-2024, 03:37 PM
0 responses
402 views
0 likes
Last Post seqadmin  
Started by seqadmin, 02-09-2024, 03:36 PM
0 responses
646 views
0 likes
Last Post seqadmin  
Working...
X